[Pkg-mozext-commits] [firebug] 05/12: #7907 monitor() and debug() commands don't place breakpoints correctly
David Prévot
taffit at moszumanska.debian.org
Tue Jun 16 14:30:52 UTC 2015
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to branch master
in repository firebug.
commit 3418968212fc55df520d0e3b27c9e7730d25c490
Author: Florent FAYOLLE <florent.fayolle69 at gmail.com>
Date: Sun Jun 7 11:34:33 2015 +0200
#7907 monitor() and debug() commands don't place breakpoints correctly
---
extension/content/firebug/console/functionMonitor.js | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/extension/content/firebug/console/functionMonitor.js b/extension/content/firebug/console/functionMonitor.js
index 8988356..537ce61 100644
--- a/extension/content/firebug/console/functionMonitor.js
+++ b/extension/content/firebug/console/functionMonitor.js
@@ -123,7 +123,11 @@ var FunctionMonitor = Obj.extend(Module,
Trace.sysout("functionMonitor.monitorScript; " + script.url + ", " +
script.startLine);
- var location = {line: script.startLine, url: script.url};
+ var url = script.url;
+ var columnOffsets = script.getAllColumnOffsets();
+ if (!columnOffsets || !columnOffsets.length)
+ return false;
+ var location = {line: columnOffsets[0].lineNumber, url: script.url};
// If the first line of the script contains no code, slide down to
// the next line that has runnable code.
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-mozext/firebug.git
More information about the Pkg-mozext-commits
mailing list