0.1.7 • Published 3 years ago

@phoenix-plugin-registry/brackets-node-debugger v0.1.7

Weekly downloads
-
License
MIT
Repository
-
Last release
3 years ago

#Brackets Node.JS Debugger

Brackets-node-debugger is an extension for the Brackets editor.

It's an early stage step-by-step debugger for Node.js applications.

Install it

Use the built-in Brackets Extension Manager to install Node.JS Debugger or clone this repository into your Extension folder

You need to restart (not just reload) Brackets after the installation!

How to use it

Start your script with node --debug-brk yor-script.js or node --debug your-script.js

Go into Brackets and click on Debug -> Node.js Debugger or use Ctrl-Shift-I

Click on the red icon at the top left corner to activate the debugger and connect it to your script.

alt

Use the Buttons to Step over, Step in, Step out or to continue the script execution.

alt

Click on a line number to set/remove a Breakpoint and use the console to get an variable for the current scope.

alt

Use the arrow keys to browse through the history.

Options

Open the preferences file (brackets.json) and edit/add the entry. All options use the brackets-node-debugger.-prefix

OptionDefaultDescription
debugger-port5858Port the V8 Debugger is running on
debugger-hostlocalhostHost the V8 Debugger is running on
showChangelogOnUpdatetrueShow Changelog Dialog when you update the Extension
autoConnectOnTogglefalseConnect to the debugger as soon as you open the Node.js Debugger Panel
autoConnectfalseConnect always to the debugger as soon as available, powerful if your node process restarts on file changes
removeBreakpointsOnDisconnectfalseRemove all Breakpoints when Debugger disconnects
lookupDepth4Defines how deep the lookup max goes if you evaluate something

Bugs & Contributing

There are still a lot of featuers missing and probably a few bugs as well, so feel free to contribute in any way!

Send a pull request, open an issue if you found a bug or if you have an idea to make this tool even better...

License

The Brackets Node.JS Debugger is licensed under the MIT License

And thanks for the awesome Icons, Ionicons