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

David Feinberg david at rawberg.com
Sat Oct 26 10:18:21 BST 2013


The patch worked perfectly! Thank you!!

python3 app.py -qmljsdebugger=port:9030,block
QML debugging is enabled. Only use this in a safe environment.
QML Debugger: Waiting for connection on port 9030...


On Fri, Oct 25, 2013 at 10:15 AM, Phil Thompson <phil at riverbankcomputing.com
> wrote:

> 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 --------------
An HTML attachment was scrubbed...
URL: <http://www.riverbankcomputing.com/pipermail/pyqt/attachments/20131026/9f71a29b/attachment.html>


More information about the PyQt mailing list