debugger: pass on v8 debug switches
authorBen Noordhuis <info@bnoordhuis.nl>
Sat, 16 Nov 2013 13:39:41 +0000 (14:39 +0100)
committerBen Noordhuis <info@bnoordhuis.nl>
Sat, 16 Nov 2013 13:53:56 +0000 (14:53 +0100)
commitbd9c66668c6fe45d640bce208da61bd1c864e104
treef9c7d04d76192bc441aaf6aa92ae667ebf65b144
parentd6df1b91579e95283768935ec3f43eb34e2dc818
debugger: pass on v8 debug switches

Before this commit, passing --debugger and other V8 debug switches to
node.js made node print a usage message and exit.

Rewrite the debug argument parser so it only consumes switches that we
understand and pass everything else as-is to V8.

A side effect of this change is that switches like --debugger_agent and
--debugger_port now work.  That kind of obsoletes our debugger switches
because they implement pretty much the same functionality but let's
leave them in for now for the sake of convenience and backwards
compatibility.

Fixes #6526.
src/node.cc
test/simple/test-debug-args.js [new file with mode: 0644]