Running and debugging Node applications
Open plugin.xml, in "Testing" section click "Launch an Eclipse application"
-
in
plugin.xmladdLaunchShortcut -
create new
public class LaunchShortcutName implements ILaunchShortcutfor example seeorg.nodeclipse.debug.launch.LaunchShortcutCoffeeCompile.java -
Check
org.nodeclipse.debug.launch.LaunchConfigurationDelegate.java
debug port 5858 was hard-coded
in 2 classes: LaunchConfigurationDelegate.java & NodeDebugUtil
org.nodeclipse.debug\src\org\nodeclipse\debug\launch\LaunchConfigurationDelegate.java
Nodeclipee Console is in .ui package, no need for
Import-Package: org.eclipse.ui.console
http://wiki.eclipse.org/FAQ_How_do_I_write_to_the_console_from_a_plug-in%3F
This may be used to show coffee compilation errors as links.
console = new MessageConsole("myconsole", null);
console.activate();
ConsolePlugin.getDefault().getConsoleManager().addConsoles(new IConsole[]{ console });
IPath path = Path.fromOSString(filePath);
IFile file = ResourcesPlugin.getWorkspace().getRoot().getFileForLocation(path);
FileLink fileLink = new FileLink(file, null, -1, -1, -1);
console.addHyperlink(fileLink, 10, 5);
-
currecntly
private static RuntimeProcess nodeProcess, that is only one Node process may be running. -
--debug-brk=5858
http://stackoverflow.com/questions/11947409/nodejs-eclipse-v8-deb
Port should be set per file basis, e.g. in Run Configuration