Filter stack in debug output when using debug.stackTrace pref
This commit is contained in:
parent
a70a517f7e
commit
a854ce9dce
|
@ -139,7 +139,7 @@ Zotero.Debug = new function () {
|
||||||
}
|
}
|
||||||
|
|
||||||
if (stack) {
|
if (stack) {
|
||||||
message += '\n' + Zotero.Debug.stackToString(stack);
|
message += '\n' + this.stackToString(stack);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (_console || _consoleViewer) {
|
if (_console || _consoleViewer) {
|
||||||
|
@ -288,7 +288,7 @@ Zotero.Debug = new function () {
|
||||||
+ ':' + stack.lineNumber;
|
+ ':' + stack.lineNumber;
|
||||||
stack = stack.caller;
|
stack = stack.caller;
|
||||||
}
|
}
|
||||||
return str.substr(1);
|
return this.filterStack(str).substr(1);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user