Re: [gedit-list] Debugging Plugins



Am 08.02.2011 15:50, schrieb Curtis Hovey:
>> On Tue, 2011-02-08 at 15:12 +0100, dennis wrote:
>>> i'm interested to walk through my python plugin code "step by step",
>>> so i can set breakpoints and very important watch values on exution.
>>> Is there any way, i can do this?
>>> Cause i need imported"gedit", it must be available in gedit.
>>> I found this:
>>>
>>> on:        http://live.gnome.org/GeditPluginHowtoe
>> This is nice to know.
>>  
>> Gedit Developer Plugins (https://launchpad.net/gdp) solved the issue
>> differently. I am a TDD programmer so I wanted to test the plugin as
>> well as debug it. The test runner builds set of fake gedit python
>> objects from the gedit c defs that the plugins use in tests. There is
>> enough functionality to create windows, add tabs, and add documents. I
>> use the standard pdb to debug methods.
>>
>> I am updating the plugins to gir/libpeas and be a gedit extension. I
>> hope to drop the fake objects if the will be a gir gedit package.
>>
>This sounds great, thanx.

>I installed the gdp, activated it in gedit. When i try to debug a
>py-file, only command "set Breakpoint" is available.
>All other Items under "Debug" are greed-out, do you know why?

Sorry i mixed up gdp with gedbp.
When i was looking for the defs you mentioned above, i had to realize,
that they're all implemented in C.
I can't handle C very well, so i think it would be great, if they could
publish something like a python.py, so everyone can import and debug
with it.
Or can you explain the way you handle this with dgb in just a little
more details.
Thanx for your advice
Dennis605


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]