Skip to content
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

Allow remoteRoot also for node "Launch" action (for custom launchers) #11681

Closed
CherryDT opened this issue Sep 8, 2016 · 0 comments
Closed
Assignees
Labels
debug Debug viewlet, configurations, breakpoints, adapter issues feature-request Request for new features or functionality
Milestone

Comments

@CherryDT
Copy link

CherryDT commented Sep 8, 2016

  • VSCode Version: 1.4.0
  • OS Version: Windows 10 x64 Anniversary

I have a feature request. I'm currently trying to get VSCode to debug node running in WSL, but I'd like to be able to use the "Launch" action also to launch node in WSL with the given settings.

I created a custom "wsl_node.exe" file (and set it as "runtimeExecutable") which launches bash with -c, calling a script, and passing a filtered view of environment variables and the current directory as well as the command line arguments. Then, my script changes the directory in bash to the /mnt-equivalent of the original current directory, sets the environment variables and runs node inside WSL with the given arguments, passing through its output and exit code.

This works so far, except for the fact that I have to use "externalConsole", otherwise I only get an error 0x80070057. I am able to use "debugger;" or "stopOnEntry", and then I can debug. However, the breakpoints and the project tree don't work right, because VSCode gets the path as "/mnt/c/xyz" instead of "C:\xyz".

I saw there is a "remoteRoot" which solves this problem, but it appears like it works only when attaching, not when launching... Is there any way I could solve this, or support for it could be added? I assume, though, that not many people will use this feature alone, so maybe support for a better integration with node running inside WSL could be helpful...

@ramya-rao-a ramya-rao-a added the debug Debug viewlet, configurations, breakpoints, adapter issues label Sep 8, 2016
@isidorn isidorn removed their assignment Sep 8, 2016
@weinand weinand added the feature-request Request for new features or functionality label Oct 10, 2016
@weinand weinand added this to the April 2017 milestone Apr 5, 2017
@kieferrm kieferrm mentioned this issue Apr 6, 2017
15 tasks
@weinand weinand modified the milestones: On Deck, April 2017 Apr 21, 2017
@weinand weinand modified the milestones: May 2017, On Deck May 3, 2017
@kieferrm kieferrm mentioned this issue May 5, 2017
44 tasks
@vscodebot vscodebot bot locked and limited conversation to collaborators Nov 18, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
debug Debug viewlet, configurations, breakpoints, adapter issues feature-request Request for new features or functionality
Projects
None yet
Development

No branches or pull requests

4 participants