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

Issue 7981023: Turn on d8 interactive debugging before running files passed on the command line (Closed)

Created:
9 years, 3 months ago by Søren Thygesen Gjesse
Modified:
9 years, 3 months ago
Reviewers:
Kasper Lund, Yang
CC:
v8-dev
Visibility:
Public.

Description

Turn on d8 interactive debugging before running files passed on the command line If the file test.js contains: function f() { debugger; } f() Then running $ d8 --debugger test.js will now hit the breakpoint in f which it would not before. R=yangguo@chromium.org BUG= TEST= Committed: http://code.google.com/p/v8/source/detail?r=9366

Patch Set 1 #

Total comments: 6

Patch Set 2 : Addressed review comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+15 lines, -5 lines) Patch
M src/d8.cc View 1 2 chunks +15 lines, -5 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
Søren Thygesen Gjesse
9 years, 3 months ago (2011-09-21 12:57:28 UTC) #1
Yang
LGTM except for the shared library build. http://codereview.chromium.org/7981023/diff/1/src/d8.cc File src/d8.cc (right): http://codereview.chromium.org/7981023/diff/1/src/d8.cc#newcode1261 src/d8.cc:1261: if (i::FLAG_debugger ...
9 years, 3 months ago (2011-09-21 13:09:02 UTC) #2
Kasper Lund
Nit: http://codereview.chromium.org/7981023/diff/1/src/d8.cc File src/d8.cc (right): http://codereview.chromium.org/7981023/diff/1/src/d8.cc#newcode1257 src/d8.cc:1257: // Keep using the same context in the ...
9 years, 3 months ago (2011-09-21 13:14:49 UTC) #3
Kasper Lund
http://codereview.chromium.org/7981023/diff/1/src/d8.cc File src/d8.cc (right): http://codereview.chromium.org/7981023/diff/1/src/d8.cc#newcode1261 src/d8.cc:1261: if (i::FLAG_debugger && options.last_run) { options.last_run will be true ...
9 years, 3 months ago (2011-09-21 13:16:13 UTC) #4
Søren Thygesen Gjesse
9 years, 3 months ago (2011-09-21 13:42:50 UTC) #5
http://codereview.chromium.org/7981023/diff/1/src/d8.cc
File src/d8.cc (right):

http://codereview.chromium.org/7981023/diff/1/src/d8.cc#newcode1257
src/d8.cc:1257: // Keep using the same context in the interactive shell
On 2011/09/21 13:14:49, Kasper Lund wrote:
> Terminate comment with .

Done.

http://codereview.chromium.org/7981023/diff/1/src/d8.cc#newcode1261
src/d8.cc:1261: if (i::FLAG_debugger && options.last_run) {
On 2011/09/21 13:09:02, Yang wrote:
> This breaks the shared library build. Putting this if block into "#ifndef
> V8_SHARED [...] #endif" solves this problem.

Done.

http://codereview.chromium.org/7981023/diff/1/src/d8.cc#newcode1261
src/d8.cc:1261: if (i::FLAG_debugger && options.last_run) {
On 2011/09/21 13:16:13, Kasper Lund wrote:
> options.last_run will be true here, right?

Yes, removed check.

Powered by Google App Engine
This is Rietveld 408576698