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

Use mod file to determine module mode when debugging #2846

Merged
merged 2 commits into from
Nov 4, 2019

Conversation

ramya-rao-a
Copy link
Contributor

This PR attempts to fix the issue in #2828 where code under GOPATH gets debugged under the assumption that we are not in module mode if GO111MODULE is not on.

@ramya-rao-a
Copy link
Contributor Author

@SteelPhase I put something together that should help with #2828, but I haven't had the time to test it. Do you think you can take this for a spin? :)

@SteelPhase
Copy link
Contributor

I'll try it out in the morning, and report back

@SteelPhase
Copy link
Contributor

Tested it in outside of GOPATH and it works ok. When I test it inside GOPATH i get Failed to continue: "TypeError: launchArgs.packagePathToGoModPathMap.get is not a function"

@ramya-rao-a
Copy link
Contributor Author

ramya-rao-a commented Oct 24, 2019

Thanks @SteelPhase, I pushed a fix, can you try again?

@SteelPhase
Copy link
Contributor

This appears to be working as expected

@ramya-rao-a ramya-rao-a merged commit c1669d1 into microsoft:master Nov 4, 2019
@ramya-rao-a ramya-rao-a deleted the debug-module branch November 4, 2019 02:10
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.

2 participants