Re: [Zim-wiki] Debugging Zim, especially plugins/PyCharm IDE

2015-05-22 Thread Güven , Ugur Murat
Hi Udo,

while playing around with Visual Studio Community Edition with Python Tools I 
found out how you can debug
your code by using the debugger.

You need to set some break points, then run your program as python script (so 
for Zim it does not work if you use the Windows version, you need to really run 
the Python script),
and then select 'attach to process' and select the right process to attach the 
debugger to.

When you use the function / code part of your script in which you have set the 
break point, the debugger will halt the script and let you debug.

Regards,
Murat



___
Mailing list: https://launchpad.net/~zim-wiki
Post to : zim-wiki@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zim-wiki
More help   : https://help.launchpad.net/ListHelp


Re: [Zim-wiki] Debugging Zim, especially plugins/PyCharm IDE

2015-02-19 Thread Güven , Ugur Murat
Hi,

you need to install Python 2 for Windows
https://www.python.org/downloads/release/python-279/

I installed into c:\tools\python\python27

and Pygtk for Windows:
http://ftp.gnome.org/pub/GNOME/binaries/win32/pygtk/2.22/pygtk-all-in-one-2.22.6.win32-py2.7.msi


I installed into c:\tools\gtk

You need to set the PATH variable then:
c:\tools\gtk\bin;c:\tools\python\python27

Regards,
Murat



___
Mailing list: https://launchpad.net/~zim-wiki
Post to : zim-wiki@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zim-wiki
More help   : https://help.launchpad.net/ListHelp


Re: [Zim-wiki] Debugging Zim, especially plugins/PyCharm IDE

2015-02-18 Thread Jaap Karssenberg
Hi Udo,

My debugging strategy is just putting in a lot of print statements and
then take them out before committing.May be old fashioned, but it kind of
works for me.

More systematic debugging I do by writing test coverage for functions. If
errors are reported having a test case in the suite that triggers on error
is the best way to address it.

Regards,

Jaap


On Tue, Feb 17, 2015 at 7:34 PM, Udo Weik weikeng...@aol.com wrote:

 Hello,

 I'm looking for infos how the source code/plugins can be debugged
 (Windows 7 Professional, 64 Bit SP1). Would prefer the PyCharm
 Community Edition from JetBRAINS as IDE:
 https://www.jetbrains.com/pycharm/
 http://www.jetbrains.com/


 Many thanks and greetings
 Udo

 ___
 Mailing list: https://launchpad.net/~zim-wiki
 Post to : zim-wiki@lists.launchpad.net
 Unsubscribe : https://launchpad.net/~zim-wiki
 More help   : https://help.launchpad.net/ListHelp

___
Mailing list: https://launchpad.net/~zim-wiki
Post to : zim-wiki@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zim-wiki
More help   : https://help.launchpad.net/ListHelp