'Run VSCode JS debug launch configuration from integrated terminal

Currently when there's a need to debug a JS one could create a debug configuration, go to debug tab and hit play on the chose launch configuration. Is it possible to do that from an integrated terminal? e.g. code --debug launchConfigurationName or something?

Edit:

Found a discussion on the topic on GH - https://github.com/microsoft/vscode/issues/10979. Nothing there that'd help unfortunately.



Solution 1:[1]

Ended up using this vscode extension: Debug Launcher

Easy as running the following command in the terminal:

open 'vscode://fabiospampinato.vscode-debug-launcher/launch?args={"type":"node","name":"Foo","request":"launch","program":"/path/to/foo.js"}'

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 genesst