[prev in list] [next in list] [prev in thread] [next in thread]
List: pykde
Subject: Re: [PyQt] PyQt5 Activating QML/JavaScript Debugger (qmljsdebugger)
From: David Feinberg <david () rawberg ! com>
Date: 2013-10-26 9:18:21
Message-ID: CAP1R5HQAU9D3Gv-Ga3zH9EfLa+S89n9=j5WFUiiV6peimVErmg () mail ! gmail ! com
[Download RAW message or body]
[Attachment #2 (multipart/alternative)]
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@riverbankcomputing.com
> wrote:
> On Fri, 25 Oct 2013 09:23:45 -0700, David Feinberg <david@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
[Attachment #5 (text/html)]
<div dir="ltr">The patch worked perfectly! Thank you!!<div><br></div><div>python3 \
app.py -qmljsdebugger=port:9030,block</div><div>QML debugging is enabled. Only use \
this in a safe environment.</div><div>QML Debugger: Waiting for connection on port \
9030...</div> </div><div class="gmail_extra"><br><br><div class="gmail_quote">On Fri, \
Oct 25, 2013 at 10:15 AM, Phil Thompson <span dir="ltr"><<a \
href="mailto:phil@riverbankcomputing.com" \
target="_blank">phil@riverbankcomputing.com</a>></span> wrote:<br> <blockquote \
class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc \
solid;padding-left:1ex">On Fri, 25 Oct 2013 09:23:45 -0700, David Feinberg <<a \
href="mailto:david@rawberg.com">david@rawberg.com</a>><br>
wrote:<br>
<div><div class="h5">> According to the Qt Creator docs (CONFIG+=qml_debug) \
enables debugging<br> for<br>
> Qt Quick 2 applications (Qt5) while (CONFIG+=declarative_debug) is for<br>
Qt<br>
> Quick 1 apps. Is it possible to set the qml_debug flag somehow in a<br>
PyQT5<br>
> app?<br>
><br>
<a href="http://doc-snapshot.qt-project.org/qtcreator-2.8/creator-debugging-qml.html" \
target="_blank">http://doc-snapshot.qt-project.org/qtcreator-2.8/creator-debugging-qml.html</a><br>
><br>
> To debug already running applications:<br>
> Build the application by using the appropriate configuration parameters<br>
> (if you build the application with Qt Creator, it automatically uses the<br>
> correct configuration):<br>
> Qt Quick 1: CONFIG+=declarative_debug<br>
> Qt Quick 2: CONFIG+=qml_debug<br>
> Start the application with the following arguments:<br>
> qmljsdebugger=port:<port>[,host:<ip address>][,block]<br>
> Where port (mandatory) specifies the debugging port, ip address<br>
(optional)<br>
> specifies the IP address of the host where the application is running,<br>
and<br>
> block (optional) prevents the application from running until the debug<br>
> client connects to the server. This enables debugging from the start.<br>
> Select Debug > Start Debugging > Attach to QML Port.<br>
> Choose the kit configured for the device where the application to be<br>
> debugged is running. The port number to use is displayed in the standard<br>
> output when the application starts.<br>
<br>
</div></div>Try the attached patch.<br>
<span class="HOEnZb"><font color="#888888"><br>
Phil</font></span></blockquote></div><br></div>
_______________________________________________
PyQt mailing list PyQt@riverbankcomputing.com
http://www.riverbankcomputing.com/mailman/listinfo/pyqt
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic