Search code examples
eclipsenode.jsdebuggingeclipse-plugin

How to debug Node.js programs in eclipse (using node-eclipse)?


I am very newbie to eclipse as well as the node.js is concerned. I have tried several basic programs in node.js.

Now my question is there are many articles explaining how to debug the node program in eclipse. I dnt get it working. I am on windows 7 32-bit machine and installed eclipse Indigo with node-eclipse plugin installed..

Please can any body help me how to start debugging with programs.

Disclaimer: I am very new to eclipse IDE, Node & this stackover flow as well, please help..


Solution

  • Debugging - Breakpoint, Trace, etc... via Eclipse debugger plug-in for V8

    How to Install:

    How to debug:

    Open the JavaScript source files that you want to set breakpoints.

    Double-click on the ruler at the left end of the line you want to set a breakpoint.

    If you want to remove a breakpoint, double-click on the ruler again.

    Select the main source file of Node Application on the Project Explorer, open the context menu by right-clicking, select the [Debug As]-[Node Application] menu.

    Happy debugging ;)