SSブログ

Greasemonkey のユーザスクリプトは Venkman the JavaScript debugger でデバッグできない [NT]

Greasemonkey のユーザスクリプトは Venkman JavaScript Debugger でデバッグできない。JavaScriptメモNabble - Re: Greasemonkey and venkman によると

GM scripts are executed in greasemonkey.js, more exactly, in the
evalInSandbox method, which in turns calls the native function
Components.utils.evalInSandbox [1]:
(greasemonkey.js, 223) Components.utils.evalInSandbox(code, sandbox);
Being written in C++, this cannot be debugged with Venkman.
Greasemonkeyのスクリプトは、greasemonkey.jsのComponents.utils.evalInSandbox()メソッド で実行される。このevalInSandbox()メソッドはC++で実装されているため、Venkmanではデバッグできない。

ということだ。Venkman でデバッグしようとして 5 分くらいは悩んだ..。GM_log ではめんどくさくて...


タグ:Greasemonkey

この広告は前回の更新から一定期間経過したブログに表示されています。更新すると自動で解除されます。