Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(306)

Issue 14509: Added command line debugger to D8 shell.... (Closed)

Created:
12 years ago by Søren Thygesen Gjesse
Modified:
9 years, 7 months ago
CC:
v8-dev
Visibility:
Public.

Description

Added command line debugger to D8 shell. break location [condition] clear <breakpoint #> backtrace [from frame #] [to frame #]] frame <frame #> step [in | next | out| min [step count]] print <expression> source [from line [num lines]] scripts continue help It is enabled through the option --debugger which is on by default. Committed: http://code.google.com/p/v8/source/detail?r=996

Patch Set 1 #

Total comments: 18

Patch Set 2 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1101 lines, -2 lines) Patch
M src/SConscript View 1 chunk +1 line, -1 line 0 comments Download
M src/d8.h View 1 chunk +5 lines, -0 lines 0 comments Download
M src/d8.cc View 1 4 chunks +47 lines, -0 lines 0 comments Download
M src/d8.js View 1 2 chunks +854 lines, -1 line 0 comments Download
A src/d8-debug.h View 1 chunk +48 lines, -0 lines 0 comments Download
A src/d8-debug.cc View 1 1 chunk +124 lines, -0 lines 0 comments Download
M src/debug-delay.js View 3 chunks +13 lines, -0 lines 0 comments Download
M src/flag-definitions.h View 1 chunk +1 line, -0 lines 0 comments Download
M tools/visual_studio/d8.vcproj View 1 chunk +8 lines, -0 lines 0 comments Download

Messages

Total messages: 3 (0 generated)
Søren Thygesen Gjesse
12 years ago (2008-12-17 15:34:11 UTC) #1
Mads Ager (chromium)
LGTM. My main comment is that I think switch statements would make some of the ...
12 years ago (2008-12-18 08:01:11 UTC) #2
Søren Thygesen Gjesse
12 years ago (2008-12-18 10:06:01 UTC) #3
Changed from consistently not using switch to consistently using switch, which
looks better.

http://codereview.chromium.org/14509/diff/1/4
File src/d8-debug.cc (right):

http://codereview.chromium.org/14509/diff/1/4#newcode76
Line 76: Handle<Value> request =
Shell::DebugCommandToJSONRequest(String::New(command));
On 2008/12/18 08:01:11, Mads Ager wrote:
> Too long line?

Done.

http://codereview.chromium.org/14509/diff/1/4#newcode90
Line 90: // All the functions used below takes one argument.
On 2008/12/18 08:01:11, Mads Ager wrote:
> takes -> take

Done.

http://codereview.chromium.org/14509/diff/1/7
File src/d8.cc (right):

http://codereview.chromium.org/14509/diff/1/7#newcode103
Line 103: // When debugging make exceptions appear to by uncaught.
On 2008/12/18 08:01:11, Mads Ager wrote:
> by -> be

Done.

http://codereview.chromium.org/14509/diff/1/5
File src/d8.js (right):

http://codereview.chromium.org/14509/diff/1/5#newcode203
Line 203: return SourceUnderline(location.sourceText(), location.position -
location.start);
On 2008/12/18 08:01:11, Mads Ager wrote:
> Is this line too long?

Done.

http://codereview.chromium.org/14509/diff/1/5#newcode237
Line 237: // Switch on command.
On 2008/12/18 08:01:11, Mads Ager wrote:
> This might be more readable if you use an actual switch statement?

Done.

http://codereview.chromium.org/14509/diff/1/5#newcode337
Line 337: if (args[0] == 'in' || args[0] == 'i') {
On 2008/12/18 08:01:11, Mads Ager wrote:
> Use a switch on args[0]?

Done.

http://codereview.chromium.org/14509/diff/1/5#newcode456
Line 456: if (args[0] == 'natives') {
On 2008/12/18 08:01:11, Mads Ager wrote:
> switch?

Done.

http://codereview.chromium.org/14509/diff/1/5#newcode555
Line 555: if (response.command == 'setbreakpoint') {
On 2008/12/18 08:01:11, Mads Ager wrote:
> switch?

Done.

http://codereview.chromium.org/14509/diff/1/9
File src/debug.cc (right):

http://codereview.chromium.org/14509/diff/1/9#newcode1379
Line 1379: if (Debug::InDebugger()) return;
On 2008/12/18 08:01:11, Mads Ager wrote:
> This looks like an accidental edit?

Yes, thanks. debug.cc removed from changelist.

Powered by Google App Engine
This is Rietveld 408576698