Fork of js-debugger aimed at more general debugging of javascript, client and server
Open a javascript (.js) file and execute the start-resume command (F5) to launch the debugger.
Debug panels will show up as shown in the image below.
The '>' symbol in the gutter marks the current line of execution.
Execute the toggle-breakpoint (F9) command to set a breakpoint. The breakpoint will be displayed in the gutter using a red marker.
Execute start-resume (F5) again to resume debugging or use the step-next (F10), step-in (F11) or step-out (shift-F11) commands.
You may access the commands using CMD/Ctrl+p or by using the shortcut key specified within the brackets.
'js-debugger:start-resume' (F5)
'js-debugger:stop' (shift-F5)
'js-debugger:toggle-breakpoint' (F9)
'js-debugger:step-next' (F10)
'js-debugger:step-in' (F11)
'js-debugger:step-out' (shift-F11)The following attributes can be set to control the js-debugger.
- nodePath - path to node.js executable
- appArgs - arguments sent to the application during launch
- debugPort - the port used to communicate to the launched process
"js-debugger":
nodePath: "C:/program/nodejs/node.exe"
appArgs: ""
debugPort: 5860Please click here to provide me more suggestions to improve this debugger, thanks :D
CoffeeScript support
Error HandlingIn Node.js>=0.12 and io.js. The process doesn't stop when your process finished.
So it will have no response from debugger server and will not keep going debugging.
When you face that issue, just use the x button to stop the process by yourself.
Issue report is here: nodejs/node#1788
