Skip to content
This repository has been archived by the owner on Oct 12, 2022. It is now read-only.

launch.json settings to enable debugging into ripple emulate #63

Closed
myusrn opened this issue Apr 23, 2016 · 1 comment
Closed

launch.json settings to enable debugging into ripple emulate #63

myusrn opened this issue Apr 23, 2016 · 1 comment
Assignees
Labels

Comments

@myusrn
Copy link

myusrn commented Apr 23, 2016

i'm looking to use vscode to facilitate debugging into "ripple emulate" startup behavior for "npm install ripple-emulator" package in order to look at possible resolutions to this ripple-emulator/ripple#16 feature request.

i'm stuck figuring out what to use in .vscode/launch.json node.js debugging settings, presumably for "program" and "args" properties, in order to make that work. I've tried "program": "${workspaceRoot}/lib/index" + "args": [ "emulate", "--nobrowser" ] but vscode debugger launch doesn't like that.

any pointers on how to get going with this npm package debugging story so i can understand what area of its sources does incoming arguments processing and browser launching in order to create a PR that will add the "--nobrowser" option?

@weinand weinand self-assigned this Jun 9, 2016
@weinand
Copy link
Contributor

weinand commented Jun 9, 2016

@myusrn node-debug creates the command from the individual attributes of the launch config like this:

<runtimeExecutable> <runtimeArgs> --debug-brk=<port> <program> <args>

If the runtimeExecutable is not specified, it is set to 'node'.

So you can specify an arbitrary program for runtimeExecutable as long as it can deal with all the other arguments.

@weinand weinand closed this as completed Jul 5, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants