-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
What is the workflow for debugging node-clangd code? #17
Comments
What I ended up doing is setting a breakpoint in the vscode-clangd workspace, in the generated code at However, that still doesn't get me to an edit/debug cycle for node-clangd code. |
To get vscode-clangd to consume a locally modified node-clangd, I did the following:
I think npm link is supposed to be a more proper way to do this (symlinking rather than copying the local version of the dependency), but that runs into a On the plus side, having copied |
(But editing the file in that location does not work, so it doesn't quite give me an edit/debug workflow...) |
Hi Nathan,
I use npm link (or a manual symlink) while editing node-clangd. I hadn't hit that bug because I never need to use (If you want to test the final packaged artifact that makes sense, but I've never done that with an unpublished version of node-clangd).
My guess: this might work if you use the symlink + rebuild both projects (or run a watch-recompile in both directories). |
Thanks! This is helpful (also as a way to test a locally modified vscode-clangd without packaging it in general) |
@sam-mccall what if you need the extension to run on a remote host while you're debugging? |
To investigate clangd/vscode-clangd#396, I'd like to step through some code in node-clangd in the debugger. However, I'm not clear on how to do this:
What is the proper way to do this? My apologies if this should be obvious, I'm not well versed in node or vscode extension development.
The text was updated successfully, but these errors were encountered: