mirror of
https://github.com/nodejs/node.git
synced 2025-05-22 02:08:55 +00:00

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.
5 lines
67 B
JavaScript
5 lines
67 B
JavaScript
var mod = require('./mod.js');
|
|
mod.hello();
|
|
mod.hello();
|
|
debugger;
|