-
Notifications
You must be signed in to change notification settings - Fork 570
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
Add debugging to tests and single file configuration #2345
Conversation
In the PR you rely on delve for building sources. That's why derekparker/delve#423 is blocker for you. Instead of that it's better to separate building and running/debugging binary file logic. In this case delve will have nothing to do with building and we will be able change building-logic in any way we want. |
You are right. I'll update this accordingly. |
Note for self: test flags for running a binary are sent with their prefix ( |
@dlsniper yep, this is exactly how I see it. The only hard issue here is preprocessing arguments. Note that all following arguments are needed to be processed (not only run): https://github.com/golang/go/blob/master/src/cmd/go/test.go#L126 |
Hi, I'm close to finishing this but I need some help. The logs:
and the output:
which is flagged as: When running the the following commands:
with the output:
and setting the breakpoint on the line correctly that works as expected and the debugger stops. So does running the tests without the debugger:
Which has the output:
Can you please have a look on this? Thank you! |
Please do not try to implement everything in a single PR, it would take forever until it would be fully reviewed/reworked until merge. |
Understood. One question. Since I'm reworking this whole run configuration part, would it be also ok if at the end of the process we remove the the separate Go Single File configuration and merge the functionality into the Go Application configuration? I'll submit the first PR to run tests via GoBuildingRunner soon. Thank you. |
Sure, I think it's logical continuation of this issue, as well as adding multi-file run configuration |
Fixes #1855