[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">&lt;<a \
href="mailto:phil@riverbankcomputing.com" \
target="_blank">phil@riverbankcomputing.com</a>&gt;</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 &lt;<a \
href="mailto:david@rawberg.com">david@rawberg.com</a>&gt;<br>

wrote:<br>
<div><div class="h5">&gt; According to the Qt Creator docs (CONFIG+=qml_debug) \
enables debugging<br> for<br>
&gt; Qt Quick 2 applications (Qt5) while (CONFIG+=declarative_debug) is for<br>
Qt<br>
&gt; Quick 1 apps.  Is it possible to set the qml_debug flag somehow in a<br>
PyQT5<br>
&gt; app?<br>
&gt;<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>
 &gt;<br>
&gt; To debug already running applications:<br>
&gt; Build the application by using the appropriate configuration parameters<br>
&gt; (if you build the application with Qt Creator, it automatically uses the<br>
&gt; correct configuration):<br>
&gt; Qt Quick 1: CONFIG+=declarative_debug<br>
&gt; Qt Quick 2: CONFIG+=qml_debug<br>
&gt; Start the application with the following arguments:<br>
&gt; qmljsdebugger=port:&lt;port&gt;[,host:&lt;ip address&gt;][,block]<br>
&gt; Where port (mandatory) specifies the debugging port, ip address<br>
(optional)<br>
&gt; specifies the IP address of the host where the application is running,<br>
and<br>
&gt; block (optional) prevents the application from running until the debug<br>
&gt; client connects to the server. This enables debugging from the start.<br>
&gt; Select Debug &gt; Start Debugging &gt; Attach to QML Port.<br>
&gt; Choose the kit configured for the device where the application to be<br>
&gt; debugged is running. The port number to use is displayed in the standard<br>
&gt; 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