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

Debug: Start without debugging cmd should always use current file #2085

Closed
ramya-rao-a opened this issue Nov 4, 2018 · 1 comment
Closed

Comments

@ramya-rao-a
Copy link
Contributor

Debug: Start without Debugging is the command to use to simply run the current file rather than debugging.

This works just fine just fine in the below cases:

  • No launch.json file or it is empty
  • The currently selected debug configuration in launch.json has the program attribute pointing to a file.

This falls back to debugging when the program attribute in the currently selected debug configuration points to a directory. This is because go run needs a file.

In such cases, we should use the file open in the currently active editor instead of falling back to debugging the package.

PRs are most welcome to fix this.
Code Pointers:

@ramya-rao-a
Copy link
Contributor Author

ramya-rao-a commented Dec 13, 2018

This feature is now available in the latest version of the Go extension (0.8.0)
Thanks @brycekahle!

@vscodebot vscodebot bot locked and limited conversation to collaborators Jan 5, 2019
# for free to subscribe to this conversation on GitHub. Already have an account? #.
Projects
None yet
Development

No branches or pull requests

1 participant