[PyQt] PyQt5 Activating QML/JavaScript Debugger (qmljsdebugger)

Phil Thompson phil at riverbankcomputing.com
Fri Oct 25 18:15:53 BST 2013


On Fri, 25 Oct 2013 09:23:45 -0700, David Feinberg <david at rawberg.com>
wrote:
> According to the Qt Creator docs (CONFIG+=qml_debug) enables debugging
for
> Qt Quick 2 applications (Qt5) while (CONFIG+=declarative_debug) is for
Qt
> Quick 1 apps.  Is it possible to set the qml_debug flag somehow in a
PyQT5
> app?
>
http://doc-snapshot.qt-project.org/qtcreator-2.8/creator-debugging-qml.html
> 
> To debug already running applications:
> Build the application by using the appropriate configuration parameters
> (if you build the application with Qt Creator, it automatically uses the
> correct configuration):
> Qt Quick 1: CONFIG+=declarative_debug
> Qt Quick 2: CONFIG+=qml_debug
> Start the application with the following arguments:
> qmljsdebugger=port:<port>[,host:<ip address>][,block]
> Where port (mandatory) specifies the debugging port, ip address
(optional)
> specifies the IP address of the host where the application is running,
and
> block (optional) prevents the application from running until the debug
> client connects to the server. This enables debugging from the start.
> Select Debug > Start Debugging > Attach to QML Port.
> Choose the kit configured for the device where the application to be
> debugged is running. The port number to use is displayed in the standard
> output when the application starts.

Try the attached patch.

Phil
-------------- next part --------------
A non-text attachment was scrubbed...
Name: qml_debug.patch
Type: text/x-diff
Size: 443 bytes
Desc: not available
URL: <http://www.riverbankcomputing.com/pipermail/pyqt/attachments/20131025/ccb7610d/attachment.patch>


More information about the PyQt mailing list