Skip to content

Instantly share code, notes, and snippets.

@past
Created April 4, 2013 18:30
Show Gist options
  • Save past/5312850 to your computer and use it in GitHub Desktop.
Save past/5312850 to your computer and use it in GitHub Desktop.
diff --git a/toolkit/devtools/debugger/server/dbg-script-actors.js b/toolkit/devtools/debugger/server/dbg-script-actors.js
--- a/toolkit/devtools/debugger/server/dbg-script-actors.js
+++ b/toolkit/devtools/debugger/server/dbg-script-actors.js
@@ -502,6 +502,7 @@ ThreadActor.prototype = {
let breakpoints = this._breakpointStore[aLocation.url];
let actor;
+try {
if (breakpoints[aLocation.line].actor) {
actor = breakpoints[aLocation.line].actor;
} else {
@@ -511,7 +512,10 @@ ThreadActor.prototype = {
});
this._hooks.addToParentPool(actor);
}
-
+}catch(e){
+ dumpn(">>>>>>>>>>>>>>>> "+e);
+ dump(new Error().stack);
+}
let scripts = this.dbg.findScripts(aLocation);
if (scripts.length == 0) {
return {
@@ -1148,6 +1152,7 @@ ThreadActor.prototype = {
let bp = existing[line];
// Limit search to the line numbers contained in the new script.
if (bp && line >= aScript.startLine && line <= endLine) {
+for (let i in bp) dump(">>>>>>>>>>>>>> bp: "+i); dump("\n");
this._setBreakpoint(bp);
}
}
pas
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment