Re: [webkit-dev] WebKit Inspector - Working with Breakpoints

2011-03-03 Thread Patrick Mueller

On 3/2/11 4:25 PM, Charles Pritchard wrote:

By enriched I mean: I'd like to be able to save and/or load
breakpoints.


So, you'd like to be able to save some set of breakpoints (all
the ones currently enabled?) into a file, and be able to reload
it later?

This seems like a good candidate for a debugger extension,
whenever that facility comes on line.  Doesn't seem like
it would be useful enough function to build into the base.


And I'd like to be able to inject code into a breakpoint.


Have you looked at the existing conditional breakpoint support?
Right click over a breakpoint.  I think this facility can be
abused to do what you want.

BTW, feel free to open bugs on these, of course:

http://webkit.org/new-inspector-bug

--
Patrick Mueller - http://muellerware.org

___
webkit-dev mailing list
webkit-dev@lists.webkit.org
http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev


Re: [webkit-dev] WebKit Inspector - Working with Breakpoints

2011-03-03 Thread Charles Pritchard

On 3/3/2011 6:23 AM, Patrick Mueller wrote:

On 3/2/11 4:25 PM, Charles Pritchard wrote:

By enriched I mean: I'd like to be able to save and/or load
breakpoints.


So, you'd like to be able to save some set of breakpoints (all
the ones currently enabled?) into a file, and be able to reload
it later?

This seems like a good candidate for a debugger extension,
whenever that facility comes on line.  Doesn't seem like
it would be useful enough function to build into the base.


And I'd like to be able to inject code into a breakpoint.


Have you looked at the existing conditional breakpoint support?
Right click over a breakpoint.  I think this facility can be
abused to do what you want.

BTW, feel free to open bugs on these, of course:

http://webkit.org/new-inspector-bug



Thanks for pointing out the conditional breakpoints, I hadn't looked at 
them.
They can be abused well enough -- I don't think I can inject a return; 
statement,

but I can certainly fiddle with things.

I'd like to be able to expose the breakpoints to the scripting environment,
don't need to save it to a file if I can expose JSON to js.

I'll keep an eye out for the debug extension facility.
I'm happy with the progress webkit inspector has made.

-Charles

___
webkit-dev mailing list
webkit-dev@lists.webkit.org
http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev


[webkit-dev] WebKit Inspector - Working with Breakpoints

2011-03-02 Thread Charles Pritchard
I've used fiddler2 in some special cases, and it's really come in handy 
with experimenting on live sites.
Fiddler2 just acts as a simple http proxy, to hijack requests to 
particular resources and redirect them to another location and/or local 
file.


The breakpoints mechanism in WebKit inspector would actually serve me, 
for the majority of cases I've used fiddler2, if it were enriched.


By enriched I mean: I'd like to be able to save and/or load 
breakpoints.

And I'd like to be able to inject code into a breakpoint.

That'd do it for me. With that option, I could easily put in 
callmyNewCode(); return;
where'ever I need to do my code hacking. And I could also save that 
work, between sessions, so I can work with it later.


Are there any interested parties/ideas/or prior discussions about this 
technique?





___
webkit-dev mailing list
webkit-dev@lists.webkit.org
http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev