diff options
author | sgjesse@chromium.org <sgjesse@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-10-09 07:37:36 +0000 |
---|---|---|
committer | sgjesse@chromium.org <sgjesse@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-10-09 07:37:36 +0000 |
commit | f5ea16084b0ada455912c541e804b3a1831c4cc0 (patch) | |
tree | a4aa4049f15db707b58c482b9a0374f5cccbb7ed /chrome/browser/debugger/resources | |
parent | 45c705f2f8a94a23155bec740b12770c524f2dbe (diff) | |
download | chromium_src-f5ea16084b0ada455912c541e804b3a1831c4cc0.zip chromium_src-f5ea16084b0ada455912c541e804b3a1831c4cc0.tar.gz chromium_src-f5ea16084b0ada455912c541e804b3a1831c4cc0.tar.bz2 |
Initialize string to the empty string to avoid 'undefinedXXX' when appending XXX.
Format frame numbers with two digits when presenting the output from teh f command.
BUG=1304224
Review URL: http://codereview.chromium.org/6079
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@3091 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/debugger/resources')
-rw-r--r-- | chrome/browser/debugger/resources/debugger_shell.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/chrome/browser/debugger/resources/debugger_shell.js b/chrome/browser/debugger/resources/debugger_shell.js index 6c798b4..a3671c3 100644 --- a/chrome/browser/debugger/resources/debugger_shell.js +++ b/chrome/browser/debugger/resources/debugger_shell.js @@ -183,7 +183,7 @@ DebugCommand.getSourceLocation = function(script, source, line, func) { // TODO(erikkay): take column into account as well if (source) source = "" + line + ": " + source; - var location; + var location = ''; if (func) { location = func + ", "; } @@ -533,7 +533,7 @@ DebugCommand.responseFrame_ = function(msg) { body = msg.body; loc = DebugCommand.getSourceLocation(body.func.script, body.sourceLineText, body.line, body.func.name); - print("#" + body.index + " " + loc[0]); + print("#" + (body.index <= 9 ? '0' : '') + body.index + " " + loc[0]); print(loc[1]); shell_.current_frame = body.index; shell_.current_line = loc[2]; |