Debugging Node Komodo IDE only
Komodo can debug Node programs locally or remotely. The instructions below describe how to configure Komodo and Node for debugging. For general information about using the Komodo debugger, see Komodo Debugger Functions.
Debugger commands can be accessed from the Debug menu, by shortcut keys, or from the Debug Toolbar. For a summary of debugger commands, see the Debugger Command List.
Configuring the Node Debugger
To specify which Node.js interpreter Komodo uses for debuging:
- Select Edit|Preferences (OS X: Komodo|Preferences).
- In the Preferences dialog box under Languages, click Node. Komodo searches for Node interpreters on your system and displays them in the drop-down list.
- If the preferred interpreter is in this list, click to select it. If not, click Browse to locate it.
- Click OK.
To start a local Node debugging session:
On the Debug menu or Debug Toolbar, click Go/Continue or Step In to invoke the debugging session. See Komodo Debugger Functions for full instructions on using Komodo's debugging functionality.
Debugging Node Remotely
When debugging a Node program remotely, the program is executed on the remote system and the debug output is sent to Komodo. Komodo controls the debugging session (e.g. stepping and breakpoints) once the session starts on the remote system.
Install the komodo-debug package with npm:
npm install komodo-debug -g
Note: For Komodo to open an editable copy of the file, a Mapped URI must be created to link the file on the remote filesystem with the URI Komodo receives from the remote debugger. |