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:

debug configuration area

now select arguments tab:

arguments tab

insert value of argument , press apply.


Comments

Popular posts from this blog

c++ - QTextObjectInterface with Qml TextEdit (QQuickTextEdit) -

javascript - angular ng-required radio button not toggling required off in firefox 33, OK in chrome -

xcode - Swift Playground - Files are not readable -