[Webkit-unassigned] [Bug 117639] Feature request: ability to trace execution of JS to console without stepping through in debugger

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Sep 11 18:01:06 PDT 2013


https://bugs.webkit.org/show_bug.cgi?id=117639





--- Comment #3 from Gary Weaver <garysweaver at gmail.com>  2013-09-11 18:00:19 PST ---
Thanks, but I'm not looking for a code coverage utility.

I wanted to be able to hook into Javascript execution to be able to write to console.out instead of debugging with the browser's developer tools. Having a way to trace the execution to the console (or in the case of PhantomJS, it could log it to the terminal console) and filter it also would be awesome.

It isn't enough to just use Javascript to do it. Here are two attempts I made:

The first tried to hook into the function prototype, but that is bad news- AngularJS and similar don't play well:

https://github.com/garysweaver/autolog.js

The second just changes the JS code you give it to log to console:

https://github.com/garysweaver/noisify

It would be really helpful to have something instead like these that are offered in Ruby, but to do it via the Webkit API, since it isn't likely to be added in Javascript anytime soon:

http://www.ruby-doc.org/core-2.0.0/TracePoint.html
http://www.ruby-doc.org/stdlib-2.0/libdoc/tracer/rdoc/Tracer.html
http://www.ruby-doc.org/core-2.0.0/Kernel.html#method-i-set_trace_func

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list