-
Notifications
You must be signed in to change notification settings - Fork 752
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
debug: dlv-dap mode doesn't handle launch failure when current opened file is launch.json #1413
Comments
Thanks for the report. I see the following log from the dev console.
Looks like we are not catching the error thrown here vscode-go/src/goDebugFactory.ts Line 393 in 505f363
We can try to catch the error and start teardown (& print the error message in the DEBUG CONSOLE or popup for better visibility). cc @suzmue |
Change https://golang.org/cl/309809 mentions this issue: |
The following often happens to me:
Failed to continue: "The program attribute must be a directory or .go file in debug mode"
with the following logged in the Debug Console:The program "/Users/polina/go/src/foo/.vscode/launch.json" must be a valid go file in debug mode
Doing the same with
"debugAdapter": "dlv-dap"
, I get only this in the log (no launch failure logging)and then nothing but the option to stop/restart with the little blue marker running and running in the UI:
I then have to manually click Stop.
If I do the same thing using
"debugServer":54321
to connect to an external instance of dlv-dap running in another terminal at port 54321, I get a (less informative) pop-upand the following log
The text was updated successfully, but these errors were encountered: