golang / vscode-go

Go extension for Visual Studio Code
https://marketplace.visualstudio.com/items?itemName=golang.Go
Other
3.78k stars 728 forks source link

Add a configuration item named "args" to pass arguments to dlv debug test binary. #3266

Open benz9527 opened 3 months ago

benz9527 commented 3 months ago

Is your feature request related to a problem? Please describe. There is without any configuration item for me to pass the args to run the dlv debug test. image

For now, I could only run the dlv with launch.json to achieve my goals.

image

image

It is inconvenient to debug a unit test both with log output and dlv breakpoint.

Describe the solution you'd like The debug test function could provide configurations to pass run args.

image

Describe alternatives you've considered

Additional context