GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — nodeclipse/org.nodeclipse.debug at master · Nodeclipse/nodeclipse

Expand file tree

/

org.nodeclipse.debug

/
Copy path

Directory actions

More options

More options

Directory actions

More options

More options

Latest commit

 

History

History
History
/

org.nodeclipse.debug

/
Copy path

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
.settings
.settings
 
 
META-INF
META-INF
 
 
icons
icons
 
 
src/org/nodeclipse/debug
src/org/nodeclipse/debug
 
 
.classpath
.classpath
 
 
.project
.project
 
 
README.md
README.md
 
 
build.properties
build.properties
 
 
plugin.xml
plugin.xml
 
 
pom.xml
pom.xml
 
 

README.md

Outline

org.nodeclipse.debug

Running and debugging Node applications

Developing

Open plugin.xml, in "Testing" section click "Launch an Eclipse application"

New Run/debug definition

  1. in plugin.xml add LaunchShortcut

  2. create new public class LaunchShortcutName implements ILaunchShortcut for example see org.nodeclipse.debug.launch.LaunchShortcutCoffeeCompile.java

  3. Check org.nodeclipse.debug.launch.LaunchConfigurationDelegate.java

notes

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

TODO

http://wiki.eclipse.org/FAQ_How_do_I_write_to_the_console_from_a_plug-in%3F

How to write a hyperlink to an eclipse console from a plugin

This may be used to show coffee compilation errors as links.

http://stackoverflow.com/questions/591018/how-to-write-a-hyperlink-to-an-eclipse-console-from-a-plugin

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); 

Many node instances running

  • 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

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.