Reattach debugger in VS Code after air rebuilds executable #296
Unanswered
troyatomic
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi. Do you know if there is some way to reattach the debugger after air rebuilds the executable.
For instance, let's say I'm using VS Code for developing Go application and I am debugging the application using "Attach to Process" feature in VS Code Go debugger. Unfortunately, I can only debug the application by attaching to the process due to generated code from Wire (Google tool that allows for code generation of dependency injection).
Then I make a change to the code and air notices that change and does a regeneration and rebuild (go generate && go build), but since the process is stopped the VS code debugger stops and doesn't automatically reattach to the process started by Air.
I've looked to see if there is a command that can be used to restart the debugger in VS Code but couldn't find anything. Do you know if there is a way? Thanks.
Beta Was this translation helpful? Give feedback.
All reactions