NodeJS - a step-by-step debugger for NodeJS

前端 未结 7 521
太阳男子
太阳男子 2020-12-19 01:10

I\'m looking for effective way for step-by-step debugging NodeJS server code. At this moment I use dozens of console.log()\'s and it\'s extremely hard. The perfect tool is o

7条回答
  •  天涯浪人
    2020-12-19 01:59

    How about this?

    You can try to test for Nodeclipse version 0.2.0 beta.

    http://www.tomotaro1065.com/nodeclipse/

    It will help you to debug node apps easily.

    GENERATING OF EXPRESS PROJECT

    Select the [File]-[New]-[Project] menu.
    Select [Node]-[Express Project], and push [Next] button.
    Enter [Project name], and push [Finish] button.
    

    DEBUGGING

    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.
    

提交回复
热议问题