node.js - nodejs Eclipse debugger: how to specify arguments? -
i need launch eclipse nodejs debugger specification of argument. launching nodejs application commmand line done follows:
node myapp.js argumentvalue
the value of argument accessible inside app using following:
process.argv[1]
i don't know how add argument value when launching application through eclipse debugger.
i found solution modification of nodejs app debug configuration. in eclipse choose menu run>debug configurations choose application script under node application block, should see:
now select arguments tab:
insert value of argument , press apply.
Comments
Post a Comment