Skip to content
This repository has been archived by the owner on Jul 15, 2023. It is now read-only.

debug: fix 'run without debugging' #3125

Merged
merged 2 commits into from
Mar 25, 2020
Merged

Conversation

hyangah
Copy link
Contributor

@hyangah hyangah commented Mar 24, 2020

Bug 1: when generating the default debug configuration
because there is no user-configured one, the extension
dropped noDebug field and caused the program to run with
debugging enabled. Fix it (goDebugConfiguration.ts)

Bug 2: when debug adapter receives noDebug request, it
runs the program with go run instead of invoking the
program through dlv. The go run will not work in modules
mode if the command runs outside the main module. Set
cwd accordingly.

Fixes #3121

TESTED=manually with the example attached in #3121

hyangah and others added 2 commits March 24, 2020 16:34
Bug 1: when generating the default debug configuration
because there is no user-configured one, the extension
dropped noDebug field and caused the program to run with
debugging enabled. Fix it (goDebugConfiguration.ts)

Bug 2: when debug adapter receives noDebug request, it
runs the program with `go run` instead of invoking the
program through dlv. The `go run` will not work in modules
mode if the command runs outside the main module. Set
cwd accordingly.

Fixes microsoft#3121

TESTED=manually with the example attached in microsoft#3121
@ramya-rao-a ramya-rao-a merged commit 79a6b01 into microsoft:master Mar 25, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

“Run without debugging” unable to run on macOs when used gomod.
2 participants