microsoft / nodejstools

Node.js Tools for Visual Studio
http://aka.ms/explorentvs
Apache License 2.0
1.8k stars 359 forks source link

Startup file setting breaks debugger #66

Closed mousetraps closed 9 years ago

mousetraps commented 9 years ago

If you specify your startup file under the Node.exe arguments setting, the debugger does not start.

(copied from https://nodejstools.codeplex.com/workitem/1862)

mousetraps commented 9 years ago

We should make sure we are prepending --debug-brk to the arguments, and maybe even consider overriding the startup arguments altogether when node.exe arguments are passed.

kdelmonte commented 9 years ago

Bump.

mousetraps commented 9 years ago

Brain-dumping a bit... I looked into this a little further. The problem with simply re-arranging the arguments is that it breaks process.argv because you might have an additional argument present. The solution I'm planning is: