有没有办法自定义Firebug的键盘快捷键?

Dan*_*rza 11 debugging firefox firebug keyboard-shortcuts

有没有办法自定义Firebug的键盘快捷键?我喜欢能够使用Firebug的Script面板逐步执行JavaScript代码,但看起来我只能使用默认的键盘快捷键来单步执行代码或使用鼠标单击相应的按钮.

我错过了什么吗?

是否有一些秘密:在Firefox/Firebug中配置 hack会对我有帮助吗?

lep*_*epe 7

您可以手动更改它们.转到此目录:

在最新版本中,扩展名为单个文件,扩展名为XPI.只需将其重命名为ZIP,创建一个目录并将其内容提取到其中.

Linux的:

.mozilla/firefox/*****.default/extensions/firebug@software.joehewitt.com/ 
Run Code Online (Sandbox Code Playgroud)

视窗:

%APPDATA%\Mozilla\Firefox\Profiles\<profile>\extensions\firebug@software.joehewitt.com\
Run Code Online (Sandbox Code Playgroud)

然后修改此文件(这些是我的重新映射设置):

content/firebug/debugger/script/scriptPanel.js(Firebug 2.0)

    this.keyListeners =
    [
        chrome.keyCodeListen("F5", Events.isShift, Obj.bind(this.rerun, this, context), true),
        chrome.keyCodeListen("F5", null, Obj.bind(this.resume, this, context), true),
        chrome.keyCodeListen("F6", null, Obj.bind(this.stepOver, this, context), true),
        chrome.keyCodeListen("F7", null, Obj.bind(this.stepInto, this, context)),
        chrome.keyCodeListen("F8", null, Obj.bind(this.stepOut, this, context))
    ];
Run Code Online (Sandbox Code Playgroud)

content/firebug/js/scriptPanel.js(在Firebug 2.0之前)

    this.keyListeners =
    [
        chrome.keyCodeListen("F5", null, Obj.bind(this.resume, this, context), true),
        chrome.keyListen("/", Events.isControl, Obj.bind(this.resume, this, context)),
        chrome.keyCodeListen("F6", null, Obj.bind(this.stepOver, this, context), true),
        chrome.keyListen("'", Events.isControl, Obj.bind(this.stepOver, this, context)),
        chrome.keyCodeListen("F7", null, Obj.bind(this.stepInto, this, context)),
        chrome.keyListen(";", Events.isControl, Obj.bind(this.stepInto, this, context)),
        chrome.keyCodeListen("F8", null, Obj.bind(this.stepOut, this, context)),
        chrome.keyListen(",", Events.isControlShift, Obj.bind(this.stepOut, this, context))
    ];
Run Code Online (Sandbox Code Playgroud)

在2.0之前的版本中,您还应该更改本地化文件,因此工具提示应该是正确的键:

区域/ EN-US/firebug.properties

firebug.Continue=Continue (F5)
firebug.StepOver=Step Over (F6)
firebug.StepInto=Step Into (F7)
firebug.StepOut=Step Out (F8)
Run Code Online (Sandbox Code Playgroud)

这就是全部.不幸的是,每次更新Firebug时都必须这样做.虽然已经有一个请求允许他们直接在Firebug中进行自定义.


Von*_*onC 6

如他们的讨论论坛中所述,您可以尝试keyconfig ...否则,这是一个已知的错误/限制.