[Qgis-developer] PyDev debug breakpoints

Luigi Pirelli luipir at gmail.com
Tue Jan 3 01:45:53 PST 2017


Hi

my fault, you can import pydevd if you set pydevd path in pythonpath,
something that is done on the fly by remote plugin. That's the reason
you can't import pydevd in python console.

btw the problem you describe I had useually when qgis use a pydevd
module different by that used by Eclipse/Aptana... this can happen if
you had upgrade of pydevd module => you have different versions
installed in your pydevd plugin module.

please check in the module path... e.g if your pydevd module set in
remote plugin is:
/mnt/data/PROGRAMMING/IDE/eclipse-cpp-mars-2-linux-gtk-x86_64/plugins/org.python.pydev_4.6.0.201605031722/pysrc

then check in:
/mnt/data/PROGRAMMING/IDE/eclipse-cpp-mars-2-linux-gtk-x86_64/plugins/
if there are different:
org.python.pydev_*

usually Eclipse/Aptana use the newest one.

if this is not the problem, then probably I can't help you directly
without replicating the problem.

regards
Luigi Pirelli

**************************************************************************************************
* Boundless QGIS Support/Development: lpirelli AT boundlessgeo DOT com
* LinkedIn: https://www.linkedin.com/in/luigipirelli
* Stackexchange: http://gis.stackexchange.com/users/19667/luigi-pirelli
* GitHub: https://github.com/luipir
* Mastering QGIS 2nd Edition:
* https://www.packtpub.com/big-data-and-business-intelligence/mastering-qgis-second-edition
**************************************************************************************************


On 2 January 2017 at 18:45, krwoloq <dalibor.kusic at in2.hr> wrote:
> Yeah it is pointing to the same installation (the only one). However import
> pydevd from the console does not work (no module pydevd). But the same setup
> is with the other (newer) installation - i cannot import pydevd through the
> console, but the remote debug configuration points to the right pydevd
> folder and breakpoints work.
>
> d.
>
>
> ginetto wrote
>> did you check if you are pointing the same pydevd installation from
>> qgis to aptana/pydev installation?
>>
>> check in the qgis python console the path used to load the pydevd module
>>
>> e.g.
>>
>>>>> import pydevd
>>>>> pydevd
>> <module 'pydevd' from
>> '/mnt/data/PROGRAMMING/IDE/eclipse-cpp-mars-2-linux-gtk-x86_64/plugins/org.python.pydev_4.6.0.201605031722/pysrc/pydevd.pyc'>
>>
>> Luigi Pirelli
>>
>> **************************************************************************************************
>> * Boundless QGIS Support/Development: lpirelli AT boundlessgeo DOT com
>> * LinkedIn: https://www.linkedin.com/in/luigipirelli
>> * Stackexchange: http://gis.stackexchange.com/users/19667/luigi-pirelli
>> * GitHub: https://github.com/luipir
>> * Mastering QGIS 2nd Edition:
>> *
>> https://www.packtpub.com/big-data-and-business-intelligence/mastering-qgis-second-edition
>> **************************************************************************************************
>>
>>
>> On 30 December 2016 at 19:21, krwoloq <
>
>> dalibor.kusic@
>
>> > wrote:
>>> Hi!
>>>
>>> I have two installations of QGIS - one 2.6.1 for my legacy project and
>>> the
>>> newer 2.16.1. I'm trying to use the remote debugger on the 2.6.1.
>>>
>>> On both installations I did the same thing:
>>> * Install Eclipse with PyDev (Aptana Studio)
>>> * Install Remote Debug plugin
>>> * Configure remote debug plugin with the pydevd path from Aptana
>>> installation
>>> * Create a linked folder in Aptana to the plugin source file
>>> * Put a breakpoint in the .py source
>>> * Start PyDev Debug Server (shows Debug Server root and Debug Server
>>> node)
>>> * Start remote debug in QGIS (shows "unknown" node under Debug Server
>>> root)
>>> * Run the plugin
>>>
>>> But, in my 2.6.1 installations breakpoints do not work (in 2.16.1 it
>>> works
>>> fine). What could I be missing? I can still suspend the code "manually"
>>> by
>>> using settrace or suspending the thread in PyDev (it breaks on the first
>>> next call), however I can't get the breakpoints to work :( Any idea? I
>>> don't
>>> think I did anything different on the 2.16.1 installation that does work.
>>>
>>> d.
>>>
>>>
>>>
>>> --
>>> View this message in context:
>>> http://osgeo-org.1560.x6.nabble.com/PyDev-debug-breakpoints-tp5301651.html
>>> Sent from the Quantum GIS - Developer mailing list archive at Nabble.com.
>>> _______________________________________________
>>> Qgis-developer mailing list
>>>
>
>> Qgis-developer at .osgeo
>
>>> List info: http://lists.osgeo.org/mailman/listinfo/qgis-developer
>>> Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-developer
>> _______________________________________________
>> Qgis-developer mailing list
>
>> Qgis-developer at .osgeo
>
>> List info: http://lists.osgeo.org/mailman/listinfo/qgis-developer
>> Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-developer
>
>
>
>
>
> --
> View this message in context: http://osgeo-org.1560.x6.nabble.com/PyDev-debug-breakpoints-tp5301651p5301778.html
> Sent from the Quantum GIS - Developer mailing list archive at Nabble.com.
> _______________________________________________
> Qgis-developer mailing list
> Qgis-developer at lists.osgeo.org
> List info: http://lists.osgeo.org/mailman/listinfo/qgis-developer
> Unsubscribe: http://lists.osgeo.org/mailman/listinfo/qgis-developer


More information about the Qgis-developer mailing list