<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">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?<div><a href="http://doc-snapshot.qt-project.org/qtcreator-2.8/creator-debugging-qml.html">http://doc-snapshot.qt-project.org/qtcreator-2.8/creator-debugging-qml.html</a></div><div><br><div><div style="margin: 0px; padding: 5px; line-height: 20px; color: rgb(54, 53, 52); font-family: Verdana; font-size: 13px; background-color: rgb(230, 231, 232); ">To debug already running applications:</div><ol class="1" style="margin: 0px; padding: 0px; color: rgb(54, 53, 52); font-family: Verdana; font-size: 13px; line-height: 15px; background-color: rgb(230, 231, 232); "><li style="margin: 0px 0px 10px 52px; padding: 0px; list-style: decimal; background-image: none; font-size: 10pt; line-height: 1.2; ">Build the application by using the appropriate configuration parameters (if you build the application with Qt Creator, it automatically uses the correct configuration):<ul style="margin: 0px; padding: 10px 0px 0px 25px;"><li style="margin: 0px 0px 10px 52px; padding: 0px; list-style: decimal; background-image: none; font-size: 10pt; line-height: 1.2; ">Qt Quick 1: <tt style="word-spacing: 5px;">CONFIG+=declarative_debug</tt></li><li style="margin: 0px 0px 10px 52px; padding: 0px; list-style: decimal; background-image: none; font-size: 10pt; line-height: 1.2; ">Qt Quick 2: <tt style="word-spacing: 5px;">CONFIG+=qml_debug</tt></li></ul></li><li style="margin: 0px 0px 10px 52px; padding: 0px; list-style: decimal; background-image: none; font-size: 10pt; line-height: 1.2; ">Start the application with the following arguments:<div style="margin: 0px; padding: 5px; line-height: 20px; "><tt style="word-spacing: 5px;">qmljsdebugger=port:<port>[,host:<ip address>][,block]</tt></div><div style="margin: 0px; padding: 5px; line-height: 20px; ">Where <tt style="word-spacing: 5px;">port</tt> (mandatory) specifies the debugging port, <tt style="word-spacing: 5px;">ip address</tt> (optional) specifies the IP address of the host where the application is running, and <tt style="word-spacing: 5px;">block</tt> (optional) prevents the application from running until the debug client connects to the server. This enables debugging from the start.</div></li><li style="margin: 0px 0px 10px 52px; padding: 0px; list-style: decimal; background-image: none; font-size: 10pt; line-height: 1.2; ">Select <b>Debug > Start Debugging > Attach to QML Port</b>.<div style="margin: 0px; padding: 5px; line-height: 20px; ">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.</div></li></ol><div><br></div><div><div>On Oct 25, 2013, at 9:15 AM, Phil Thompson <<a href="mailto:phil@riverbankcomputing.com">phil@riverbankcomputing.com</a>> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite">On Mon, 21 Oct 2013 08:25:46 -0700, David Feinberg <<a href="mailto:david@rawberg.com">david@rawberg.com</a>><br>wrote:<br><blockquote type="cite">I'm trying to get the qmljsdebugger functionality working for a PyQt<br></blockquote>5.1.1<br><blockquote type="cite">application on OSX. After taking all the steps outlined below I continue<br></blockquote>to<br><blockquote type="cite">get this error "QML Debugger: Ignoring "-qmljsdebugger=port:3030".<br>Debugging has not been enabled." and I'm unable to connect from Qt<br></blockquote>Creator.<br><blockquote type="cite"><br>I've installed Qt 5.1.1 with all the options included via the OSX<br>installer (on OSX 10.8.5) and also via Homebrew with the --developer<br></blockquote>flag.<br><blockquote type="cite">Both installs are in two separate locations.<br><br>I made sure sip was configured with the --debug flag before building<br>PyQt5. I've tried building the latest source snapshot of PyQt 5.1.1 via:<br><br>python3 configure.py --debug<br><br>When I try to run my app from the command line I get the following<br></blockquote>error:<br><blockquote type="cite"><br>python3 app.py -qmljsdebugger=port:3030<br>"QML Debugger: Ignoring "-qmljsdebugger=port:3030". Debugging has not<br></blockquote>been<br><blockquote type="cite">enabled."<br><br>Additional steps taken: <br>- Also tried everything with Python 2.7.5. <br>- Verified my Qt5 install contains debug files and qmljsdebugger works<br>correctly for a C++ QML/JS app.<br><br>cross posting this here and on stack overflow <br><br></blockquote><a href="http://stackoverflow.com/questions/19470884/pyqt5-activating-qml-javascript-debugger-qmljsdebugger">http://stackoverflow.com/questions/19470884/pyqt5-activating-qml-javascript-debugger-qmljsdebugger</a><br><br>I'm not sure but isn't this part of the deprecated (and so unsupported by<br>PyQt5) QtDeclarative module?<br><br>Phil<br></blockquote></div><br></div></div></body></html>