debugger: breakpoints in scripts not loaded yet
authorMiroslav Bajtoš <miro.bajtos@gmail.com>
Fri, 26 Apr 2013 06:05:33 +0000 (08:05 +0200)
committerBen Noordhuis <info@bnoordhuis.nl>
Sat, 27 Apr 2013 10:51:22 +0000 (12:51 +0200)
commit5db936d2aecaddb5d539855a150813e36df45b66
treed759739fe02f5f89ca996761480e78087b112f41
parentfd9e01c031ac843955532af4dd87b5caec38ba73
debugger: breakpoints in scripts not loaded yet

When developer calls setBreakpoint with an unknown script name,
we convert the script name into regular expression matching all
paths ending with given name (name can be a relative path too).

To create such breakpoint in V8, we use type `scriptRegEx`
instead of `scriptId` for `setbreakpoint` request.

To restore such breakpoint, we save the original script name
send by the user. We use this original name to set (restore)
breakpoint in the new child process.
doc/api/debugger.markdown
lib/_debugger.js
test/fixtures/break-in-module/main.js [new file with mode: 0644]
test/fixtures/break-in-module/mod.js [new file with mode: 0644]
test/simple/helper-debugger-repl.js
test/simple/test-debugger-repl-break-in-module.js [new file with mode: 0644]