PDA

View Full Version : Debugging JavaScript code evaluated by QWebView



thiagoalencar22
28th October 2009, 12:24
Hello all,

What's the recommended way of debugging JavaScript code executed within the page loaded from QWebView? I'm aware that something like this could be accomplished:

QVariant result;
result = this->page()->mainFrame()->evaluateJavaScript( "js function.." );

BUT, what about the JavaScript code which runs e.g. after "load(QUrl("page.html"));" , triggered by user interaction?

Any ideas??

Thanks,
Thiago F Alencar