| CARVIEW |
dannycoates / node-inspector
- Source
- Commits
- Network (5)
- Issues (2)
- Wiki (9)
- Graphs
-
Branch:
master
click here to add a description
click here to add a homepage
| name | age | message | |
|---|---|---|---|
| |
.gitignore | Sun Jul 25 20:43:56 -0700 2010 | added profiler method stubs [dannycoates] |
| |
bin/ | Thu Sep 09 22:28:35 -0700 2010 | refactored backend and removed --start flag [dannycoates] |
| |
front-end/ | Fri Sep 10 17:07:39 -0700 2010 | removed chrome extension files [dannycoates] |
| |
lib/ | Mon Sep 13 19:57:52 -0700 2010 | handle multi-byte characters from node. Closes #12 [dannycoates] |
| |
package.json | Thu Sep 09 22:28:35 -0700 2010 | refactored backend and removed --start flag [dannycoates] |
| |
readme.md | Mon Sep 13 16:24:42 -0700 2010 | Added extra Getting Started bullet points [markc] |
| |
test/ | Sat Jul 24 10:17:27 -0700 2010 | multiple ui instances can now connect to a sing... [dannycoates] |
| |
vendor/ | Thu Sep 09 22:28:35 -0700 2010 | refactored backend and removed --start flag [dannycoates] |
Node Inspector is a debugger interface for nodeJS using the WebKit Web Inspector.
Getting Started
Requirements
- nodeJS
- versions: 0.1.101 or later
- A WebKit based browser: Chrome, Safari, OmniWeb, etc.
Install
Debugging
As an example lets debug test/hello.js, from the root project directory (node-inspector)
start the inspector in the background
node-inspector &start the node instance to debug
node --debug test/hello.jsopen https://127.0.0.1:8080 in your favorite WebKit based browser
Chrome 5 users MUST use 127.0.0.1 NOT localhost or the browser will not connect to the debugger
you should now see the javascript source from nodeJS
select the hello.js script and set some breakpoints (far left line numbers)
now open https://127.0.0.1:8124/ in a new tab then go back to inspector tab
click "Step over next function call" and observe changes in the RHS panel
then watch https://www.youtube.com/watch?v=AOnK3NVnxL8
For more information on getting started see the wiki
Options
--web-port=[port] port to host the inspector (default 8080)
Cool stuff
- the WebKit Web Inspector debugger is a great js debugger interface, it works just as well for node
- uses WebSockets, so no polling for breaks
- remote debugging
- javascript top to bottom :)
- edit running code
- collaborative debugging
Known Issues
This is alpha quality code, so use at your own risk:
- be careful about viewing the contents of Buffer objects, each byte is displayed as an individual array element, for anything but tiny Buffers this will take too long to render
- while not stopped at a breakpoint the console doesn't always behave as you might expect
- pause on exceptions doesn't play nice with the node event loop
- closing the browser does not stop debugging, you must stop node-inspector manually
TODOS
- save application settings
- profiler panel
Thanks
This project respectfully uses code from and thanks the authors of:
- © 2010 GitHub Inc. All rights reserved.
- Terms of Service
- Privacy
- Security