-
Notifications
You must be signed in to change notification settings - Fork 645
Conversation
@ramya-rao-a PTAL My second point from this comment still stands, on whether should we preserve the v1 adapter or not Linux testing so far is going alright. I will continue on mac, although I don't have any windows VMs to test at the moment |
@lggomez I will finally have some time next week to go over this, thanks for you patience. I have a Windows machine and I can take up the testing on it. |
I found a breaking change in the behavior that I have to fix: if a breakpoint is defined in a no-code line, the following breakpoint requests fail: package main
import "fmt"
func main() {
foo := "hello world"
fmt.Println(foo)
} Having a breakpoint on lines 2 or 4 will break breakpoint requests on runtime |
This is the current example I have of the bug: When I start debugging, I can see the breakpoints activated but with errors on the request:
After I try to set a new breakpoint, all further requests fail:
By the looks of it, it seems that the CreateBreakpoint failure is not handled appropiately and the following requests will always fail since the It may also be bad handling of promise rejections from the v2 api on our side. I'm still not well versed on Typescript, so any pointers will be helpful |
@lggomez 6dfbfec should fix the issue you have described in #1647 (comment) |
I've tested simple program on Windows. Works great. Other scenarios we should test are
|
@lggomez I have tested in Windows and below are my findings
|
I'm running this PR without problem, but I'm still facing this issue #978 (comment) |
@primalmotion Have you tried remote debugging? |
@ramya-rao-a nope but I can. do you have a config example? |
forget it found it. I tried, exact same issue. it's even worse. I can't ctrl-c my server, vscode gets stuck in debugging mode trying to restart, and I have to reload the window |
This is the setup I use on the dev host:
And these are the commands for both v1 and v2:
I didn't have time to check the variables on remote yet, but I'll get on it as soon as I can |
@lggomez I just tried exactly this, same issue (with the addition that I have to kill -9 delve to stop it) |
I've not been able to repro the issues on v2 remote debug, this is my current state: Can you share the apicall responses for those that are giving you problems right now? I change these log calls to logger.error in order to get a more detailed view of the apicall results if needed |
Sure I’ll give it a try on Monday.
…--
Antoine Mercadal
On May 19, 2018, at 7:20 PM, Luis GG ***@***.***> wrote:
@ramya-rao-a @primalmotion
I've not been able to repro the issues on v2 remote debug, this is my current state:
Can you share the apicall responses for those that are giving you problems right now?
I change (https://github.com/Microsoft/vscode-go/blob/master/src/debugAdapter/goDebug.ts#L160-L166)[these] log calls to error in order to get a more detailed view of the apicall results if needed
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.
|
|
On a side note, the I raised an issue about this to see if they welcome the idea |
@ramya-rao-a I fixed the issue, it turns out that the delve loadConfig was not being intialized for remote sessions because that path has en early return. It should work correctly now |
Initial integration to v2 api for #1555. This includes additional debugger options for launch configuration