Browse Source

allow setBreakpoint(line)

v0.7.4-release
Fedor Indutny 13 years ago
committed by Ryan Dahl
parent
commit
07ad11916f
  1. 6
      lib/_debugger.js

6
lib/_debugger.js

@ -1304,6 +1304,12 @@ Interface.prototype.setBreakpoint = function(script, line,
line = this.client.currentSourceLine + 1; line = this.client.currentSourceLine + 1;
} }
// setBreakpoint(line-number) should insert breakpoint in current script
if (line === undefined && typeof script === 'number') {
line = script;
script = this.client.currentScript;
}
if (/\(\)$/.test(script)) { if (/\(\)$/.test(script)) {
// setBreakpoint('functionname()'); // setBreakpoint('functionname()');
var req = { var req = {

Loading…
Cancel
Save