dannycoates/node-inspector — pull request #162 by bajtos (2013-05-03 07:53:36+00:00)
Title: Debug module loading: restore breakpoints on debugee restart + update list of scripts on afterCompileEvent

When the debugged application is restarted, node-inspector restores all
breakpoints from the debugging session.

When a new script is loaded, the browser GUI is updated and the new script is added to the list of scripts.

These two changes enable debugging of module-loading process:

1. Start debugged application and node-inspector.
2. Set breakpoint in the module you want to debug.
3. Restart the application with `node --debug-brk` while keeping node-inspector running.
4. Reload node-inspector GUI in browser - this step restores breakpoints in modules-to-be-loaded
5. Resume execution and wait until your breakpoint is hit