I am running a phantom js
process to render a webpage. The webpage has many javascript
s loaded asynchronously, each running their own functions.
Is there a way to inspect/debug the javascript engine in webkit to know if it is currently executing any javascript line (as opposed to being idle)?
If so, is there a way to tell from which javascript resource it is executing?
Something like pausing the javascript engine, logging the stack trace, then resuming it as normal would do perfectly.
I don't mind reading through the source code of webkit
, phantomjs
, or render.js
, modifying it myself, and re-compiling it from source. I'd like to ask you guys first though in case a feature already exists or if someone's already done it since Google didn't give me any results. Thanks!