| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent f1c773d commit abb063a
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -7,7 +7,7 @@ repl.startDebugger('break-in-module/main.js'); | |||
| 7 | 7 | // -- SET BREAKPOINT -- | |
| 8 | 8 | ||
| 9 | 9 | // Set breakpoint by file name + line number where the file is not loaded yet | |
| 10 | - repl.addTest('sb("mod.js", 23)', [ | ||
| 10 | + repl.addTest('sb("mod.js", 2)', [ | ||
| 11 | 11 | /Warning: script 'mod\.js' was not loaded yet\./, | |
| 12 | 12 | /1/, /2/, /3/, /4/, /5/, /6/ | |
| 13 | 13 | ]); | |
@@ -20,8 +20,8 @@ repl.addTest('sb(")^$*+?}{|][(.js\\\\", 1)', [ | |||
| 20 | 20 | ||
| 21 | 21 | // continue - the breakpoint should be triggered | |
| 22 | 22 | repl.addTest('c', [ | |
| 23 | - /break in .*[\\\/]mod\.js:23/, | ||
| 24 | - /21/, /22/, /23/, /24/, /25/ | ||
| 23 | + /break in .*[\\\/]mod\.js:2/, | ||
| 24 | + /1/, /2/, /3/, /4/ | ||
| 25 | 25 | ]); | |
| 26 | 26 | ||
| 27 | 27 | // -- RESTORE BREAKPOINT ON RESTART -- | |
@@ -33,7 +33,7 @@ repl.addTest('restart', [].concat( | |||
| 33 | 33 | ], | |
| 34 | 34 | repl.handshakeLines, | |
| 35 | 35 | [ | |
| 36 | - /Restoring breakpoint mod.js:23/, | ||
| 36 | + /Restoring breakpoint mod.js:2/, | ||
| 37 | 37 | /Warning: script 'mod\.js' was not loaded yet\./, | |
| 38 | 38 | /Restoring breakpoint \).*:\d+/, | |
| 39 | 39 | /Warning: script '\)[^']*' was not loaded yet\./ | |
@@ -42,14 +42,14 @@ repl.addTest('restart', [].concat( | |||
| 42 | 42 | ||
| 43 | 43 | // continue - the breakpoint should be triggered | |
| 44 | 44 | repl.addTest('c', [ | |
| 45 | - /break in .*[\\\/]mod\.js:23/, | ||
| 46 | - /21/, /22/, /23/, /24/, /25/ | ||
| 45 | + /break in .*[\\\/]mod\.js:2/, | ||
| 46 | + /1/, /2/, /3/, /4/ | ||
| 47 | 47 | ]); | |
| 48 | 48 | ||
| 49 | 49 | // -- CLEAR BREAKPOINT SET IN MODULE TO BE LOADED -- | |
| 50 | 50 | ||
| 51 | - repl.addTest('cb("mod.js", 23)', [ | ||
| 52 | - /18/, /./, /./, /./, /./, /./, /./, /./, /26/ | ||
| 51 | + repl.addTest('cb("mod.js", 2)', [ | ||
| 52 | + /1/, /2/, /3/, /4/, /5/ | ||
| 53 | 53 | ]); | |
| 54 | 54 | ||
| 55 | 55 | repl.addTest('c', [ | |
| Back | FazBrowse Home | New Git URL |
0 commit comments