-
Notifications
You must be signed in to change notification settings - Fork 791
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
configure dlvFlags when running tests #1723
Comments
I think having proper debug settings (e.g. |
So in other words, you propose that we put many of the flags available in This could be powerful, but also add more confusion. Right now when you mouse-over a field in launch.json, it shows the defaults from package.json. Would it be possible to somehow channel the true defaults from settings.json in that hover or in some other way? Or maybe we need to invest in logging both configurations with a clear this-overrides-that presentation on start-up to make clear to the users. |
Not all the settings from launch.json. Only those that make sense to apply to all launch.json. Channeling the true defaults from settings.json is not possible as far as I know since the UI + intellisense over launch.json is done completely outside of the extension. Maybe we can log more to make it clear if that helps. |
Change https://golang.org/cl/351249 mentions this issue: |
Is your feature request related to a problem? Please describe.
In my dev environment I need to pass some flags to dlv-dap to works. It's works when running a package main with dlvFlags option in launch config. But when I want to debug the test execution, I would like to configure it here also.
Describe the solution you'd like
A settings go.testDlvFlags : [] to add in the debug test config :
https://github.com/golang/vscode-go/blob/master/src/goTest.ts#L228$
Describe alternatives you've considered
In workaround I will create a binary of dlv-dap to set my flags by default
The text was updated successfully, but these errors were encountered: