[Eric] debug python application-plugin
Marco Bernasocchi
marco at bernawebdesign.ch
Sun Jun 10 12:42:15 BST 2012
Hi Larry,
unfortunately I've no Ideas, this Is why I asked Detlev. It'd be super
to have this working. Detlev, any Idea?
ciao
On 06/06/2012 01:18 AM, Larry Shaffer wrote:
> Detlev and Marco,
>
> (this email is out of thread, as I just re-joined the list and copied it)
>
>> Hello,
>>
>> please send a little demo plug-in for testing. I have an idea but haven't
>> tried it.
>>
>> Detlev
>>
>> On Thursday 31 May 2012, 20:48:23 Marco Bernasocchi wrote:
>>> Hi All, I was wondering how I could use erich to debug python plugins
>>> for QGIS.org.
>>> With Pydev I do |0]:
>>>
>>> import sys
>>> sys.path.append("/home/me/.eclipse/org.eclipse.platform_3.7.0_155965261/plug
>>> ins/org.python.pydev.debug_2.2.4.2011110216/pysrc/")
>>>
>>> from pydevd import *
>>>
>>> And then anywhere in that file where you want a breakpoint to be
>>> triggered, simply insert this line:
>>> settrace()
>>>
>>>
>>> I'd really like to switch to eric but I couldnt figure out how to do
>>> this using passive debugging.
>>>
>>> thanks a lot
>>> Marco
>>>
>>> |0]
>>>
>>> http://linfiniti.com/2011/12/remote-debugging-qgis-python-plugins-with-pydev
> Marco, after receiving your email the other day about this I attempted
> to make it work. The approach I took was to create a PyQGIS plugin
> which starts and stops an Eric4 python DebugClient [1], connecting to
> the passive debug server in Eric4. It can connect and disconnect from
> the server.
>
> It catches exceptions [2]. However, I can't figure out how to set
> breakpoints, step through code, etc. Sometimes, when clicking Continue
> or Stop in Debug menu, after caught exception, QGIS crashes.
>
> Any ideas Detlev, or Marco?
>
> [0] http://dl.dropbox.com/u/4058089/qgis/eric4_debug.zip<-- PyQGIS
> plugin needs installed in QGIS
> [1] http://dl.dropbox.com/u/4058089/qgis/eric4-debugclient.png
> [2] http://dl.dropbox.com/u/4058089/qgis/eric4-debugexcept.png
>
> Regards,
>
> Larry Shaffer
> Dakota Cartography
> Black Hills, South Dakota
> _______________________________________________
> Eric mailing list
> Eric at riverbankcomputing.com
> http://www.riverbankcomputing.com/mailman/listinfo/eric
More information about the Eric
mailing list