Permalink
Browse files

Do not switch to the Script panel if its disabled (related to issue 4…

…290)
  • Loading branch information...
1 parent c0c4957 commit be44c8a8fcdf3f30693a6cbfb4156b51802b88d2 @janodvarko janodvarko committed Mar 28, 2012
Showing with 4 additions and 0 deletions.
  1. +4 −0 extension/content/firebug/js/debugger.js
@@ -1140,6 +1140,10 @@ Firebug.Debugger = Obj.extend(Firebug.ActivableModule,
{
var context = this.breakContext;
+ // If the script panel is disabled, Firebug can't break (issue 4290).
+ if (!Firebug.PanelActivation.isPanelEnabled("script"))
+ return RETURN_CONTINUE;
+
if (FBTrace.DBG_BP || (!context && FBTrace.DBG_FBS_ERRORS))
FBTrace.sysout("debugger.onBreak breakContext: " +
(context ? context.getName() : " none!"), StackFrame.getJSDStackDump(frame));

0 comments on commit be44c8a

Please sign in to comment.