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
Goal: run npx program so that we don't have to know the absolute paath inside of ${workspace}/node_modules problem: there is no way to know where npx is installed`
solution 1: add some local file (that can be ignored), that allows variables to be set for launch.json, then you could easily set ${usrLocal}/npx
solution 2: allow executing env or which or even just searching $PATH
solution 3: specifically add an option to node that is autodetected, ${npx} program
solution 1 is probably the most flexible, and most secure
The text was updated successfully, but these errors were encountered:
I think it's already possible similar to debugging npm scripts. Starting from default config Node.js: Launch via NPM and then using "runtimeExecutable": "npx" and "runtimeArgs": ["program"]
However it might take a bit extra to pass debug argument to node (and requires npx 9.1.0+) See zkat/npx#68
(unable to test debugging because my npx version doesn't support this flag, but it downloads and correctly uses typescript to output version or run --init with "runtimeArgs": ["typescript", "--init"])
I'm not sure if in some cases the --inspect-brk is needed, but that caused it to blow up for me (oh maybe it's because I forgot "port"). this however worked just fine
Goal: run
npx program
so that we don't have to know the absolute paath inside of${workspace}/node_modules problem: there is no way to know where
npx is installed`solution 1: add some local file (that can be ignored), that allows variables to be set for launch.json, then you could easily set
${usrLocal}/npx
solution 2: allow executing
env
orwhich
or even just searching$PATH
solution 3: specifically add an option to node that is autodetected,
${npx} program
solution 1 is probably the most flexible, and most secure
The text was updated successfully, but these errors were encountered: