You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A frequent feature request was to support running 'npm' scripts directly from a launch configuration.
This has now become possible by the following small tweaks of existing launch configuration concepts:
Any program available on the PATH (e.g. 'npm', 'mocha', 'gulp', etc.) can now be used for the runtimeExecutable attribute and arguments can be passed via the runtimeArgs.
The program attribute is no longer mandatory which helps if the npm script already specifies the program to launch.
If you specify a debug port via the port attribute, the --debug-brk=nnnn attribute will no longer be automatically added because the debug port is typically specified by the npm scripts as well.
So if your package.json has a 'debug' script, e.g.:
@weinand I am trying to configure the editor with your options, but the 'program' attribute seems to still be a requirement since I am receiving the error : Attribute 'program' is missing or empty.. I am using version 1.5.3 and node 5.10.0
Test for #2726:
Complexity 2
A frequent feature request was to support running 'npm' scripts directly from a launch configuration.
This has now become possible by the following small tweaks of existing launch configuration concepts:
runtimeExecutable
attribute and arguments can be passed via theruntimeArgs
.program
attribute is no longer mandatory which helps if the npm script already specifies the program to launch.port
attribute, the--debug-brk=nnnn
attribute will no longer be automatically added because the debug port is typically specified by the npm scripts as well.So if your package.json has a 'debug' script, e.g.:
the corresponding launch config could look like this:
Verify that you can start a debug session by using your favourite tool/scripts in a 'node' launch config.
The text was updated successfully, but these errors were encountered: