Answer the question
In order to leave comments, you need to log in
Debugging JavaScript in an HTML5 Qt application - is it possible, and if so, how?
Good day to all, the question is, in fact, in the topic ...
upd1:
Qt + HTML5 project, created from the standard QtCreator template, HTML and JavaScript files are in the html directory - I can easily open all this disgrace in the browser and debug there ... The problem is , that I pass objects to JavaScript C ++ (in which I use some methods that implement business logic in C ++) - debugging in the browser disappears, because Qt C ++ objects will not be there ...
Answer the question
In order to leave comments, you need to log in
And why does the web inspector not suit you? Pretty easy to run -
__webView->page()->settings()->setAttribute(QWebSettings::DeveloperExtrasEnabled, true);
QWebInspector inspector;
inspector.setPage(__webView->page());
inspector.setVisible(true);
Make it in an external loadable file, attribute non-cacheable (you can in the browser, Chrome has a setting in the debugger interface). Or rebuild the project before the test.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question