A
A
Anton2013-06-03 19:29:12
JavaScript
Anton, 2013-06-03 19:29:12

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

3 answer(s)
A
Alexander Keith, 2013-06-03
@tenbits

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);

And by simply listening to resources using QFileSystemWatcher, you can achieve live coding ...

S
spmbt, 2013-06-03
@spmbt

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.

K
Keyten, 2013-06-07
@Keyten

Write an application outside, and then copy everything inside. True - if it does not use any Qt-specific APIs.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question