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

Issue 7091001: Draft for Issue 1418: Debug: extends setBreakpoint API to accept partial script name as a parameter (Closed)

Created:
9 years, 6 months ago by Peter Rybin
Modified:
9 years, 5 months ago
CC:
v8-dev
Visibility:
Public.

Description

Draft for Issue 1418: Debug: extends setBreakpoint API to accept partial script name as a parameter

Patch Set 1 #

Total comments: 4
Unified diffs Side-by-side diffs Delta from patch set Stats (+39 lines, -6 lines) Patch
M src/debug-debugger.js View 9 chunks +39 lines, -6 lines 4 comments Download

Messages

Total messages: 5 (0 generated)
Peter Rybin
Hi Soren I'm thinking about Issue 1418. This is my experimental implementation. Could you please ...
9 years, 6 months ago (2011-06-03 23:19:40 UTC) #1
Søren Thygesen Gjesse
I think using regexp is fine for this. If the frontend wants a simpler pattern ...
9 years, 6 months ago (2011-06-06 09:03:43 UTC) #2
Peter Rybin
> I think using regexp is fine for this. If the frontend wants a simpler ...
9 years, 6 months ago (2011-06-16 11:02:12 UTC) #3
Peter Rybin
http://codereview.chromium.org/7091001/diff/1/src/debug-debugger.js File src/debug-debugger.js (right): http://codereview.chromium.org/7091001/diff/1/src/debug-debugger.js#newcode72 src/debug-debugger.js:72: ScriptRegexp: 2 }; On 2011/06/06 09:03:43, Søren Gjesse wrote: ...
9 years, 6 months ago (2011-06-16 11:02:20 UTC) #4
Søren Thygesen Gjesse
9 years, 6 months ago (2011-06-16 11:53:30 UTC) #5
On 2011/06/16 11:02:20, Peter Rybin wrote:
> http://codereview.chromium.org/7091001/diff/1/src/debug-debugger.js
> File src/debug-debugger.js (right):
> 
> http://codereview.chromium.org/7091001/diff/1/src/debug-debugger.js#newcode72
> src/debug-debugger.js:72: ScriptRegexp: 2 };
> On 2011/06/06 09:03:43, Søren Gjesse wrote:
> > I guess that we do need an additional type here even thought he name
matching
> > could be a regexp as well.
> 
> (I take it as "we do NOT need")
> 
> Actually on the client I'd like to distinguish these two type (I work with
them
> differently). Since V8 lists breakpoints back to client ("listbreakpoints"
> request), this information should be somehow kept.
> 
> But we can drop new ScriptBreakPointType and create polymorphic
> ScriptNameMatcher that will handle all this.
> 
>
http://codereview.chromium.org/7091001/diff/1/src/debug-debugger.js#newcode1624
> src/debug-debugger.js:1624: } else if (type == 'scriptRegexp') {
> On 2011/06/06 09:03:43, Søren Gjesse wrote:
> > Can't we combine 'script' and 'scriptRegexp' here, and convert the name
> matching
> > to a regexp?
> 
> I'd like to keep exact name and regexp separate. It corresponds to two
different
> modes in my client. Of course I can analyze regexp source and detect that the
> pattern is exact string, but I think it's too tricky.

It is OK to keep the two types distinct.

Powered by Google App Engine
This is Rietveld 408576698