nodeclipse

nodejs Eclipse debugger: how to specify arguments?

佐手、 提交于 2019-11-29 16:32:30
I need to launch the Eclipse nodejs debugger with the specification of an argument. Launching the nodejs application from the commmand line is done as follows: node myApp.js argumentValue The value of the argument is then accessible inside the app by using the following: process.argv[1] I don't know how to add the argument value when launching the application through Eclipse debugger. I found the solution to be the modification of my nodejs app debug configuration. In Eclipse choose from the menu Run>Debug Configurations then choose the application script under the Node Application block, you

Eclipse hangs on copy/cut for JavaScript files

可紊 提交于 2019-11-29 00:03:24
问题 I have Eclipse Kepler and NodeEclipse plugin installed. For NodeEclipse's performance reasons I have disabled content assistant for JavaScript files. Problem: Whenever I copy or cut some lines in JS files (ctrl+c / ctrl+x), the CPU usages goes 100% and the eclipse process eats up all memory (>1GB). I think some GC thrashing is happening. Increasing JVM max memory more is an option, but isn't 1GB enough for eclipse? This could be some memory leak. Is this specific problem with Nodeclipse? Are

How to ignore node shebang error in Eclipse?

拈花ヽ惹草 提交于 2019-11-28 23:04:52
I am writing some node command line utilities. They all start with the line: #!/usr/bin/env node With Eclipse Juno and the Nodeclipse Node.js plugin, this line of code produces an error as shown: OK, so # is not a valid comment character in javascript, but it is a valid character in Linux/UNIX as the shebang of the first line in a file. But how can I set up Eclipse to ignore this error? This is a problem for me because code formatting does not work if you have errors. I have to delete the line. Hit CTRL-SHIFT-F and add the line back. I have tried a lot of things and researched, but I can't

nodejs Eclipse debugger: how to specify arguments?

左心房为你撑大大i 提交于 2019-11-28 11:34:31
问题 I need to launch the Eclipse nodejs debugger with the specification of an argument. Launching the nodejs application from the commmand line is done as follows: node myApp.js argumentValue The value of the argument is then accessible inside the app by using the following: process.argv[1] I don't know how to add the argument value when launching the application through Eclipse debugger. 回答1: I found the solution to be the modification of my nodejs app debug configuration. In Eclipse choose from

How to ignore node shebang error in Eclipse?

回眸只為那壹抹淺笑 提交于 2019-11-27 14:32:31
问题 I am writing some node command line utilities. They all start with the line: #!/usr/bin/env node With Eclipse Juno and the Nodeclipse Node.js plugin, this line of code produces an error as shown: OK, so # is not a valid comment character in javascript, but it is a valid character in Linux/UNIX as the shebang of the first line in a file. But how can I set up Eclipse to ignore this error? This is a problem for me because code formatting does not work if you have errors. I have to delete the