Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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

…290)
  • Loading branch information...
commit be44c8a8fcdf3f30693a6cbfb4156b51802b88d2 1 parent c0c4957
@janodvarko janodvarko authored
Showing with 4 additions and 0 deletions.
  1. +4 −0 extension/content/firebug/js/debugger.js
View
4 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));
Please sign in to comment.
Something went wrong with that request. Please try again.