winpdb

Debugging django/unittest?

北城余情 提交于 2019-12-23 13:05:05
问题 I'm wondering if anybody has a hint on how to debug a unittest, or any other piece of code in django, for that matter, using a debugger like winpdb? I'm trying to to a winpdb manage.py test photo which runs my unittest for my photo app, but winpdb crashes. Are there alternatives? What is the best way to do this? I'm running linux, ubuntu 10.10. 回答1: You can use pdb to debug your program. import pdb def some_function(): pdb.set_trace() some_other_computation() When the program hits the set

Running wxPython 2.9 on OS X 10.8 (64 bit)

时间秒杀一切 提交于 2019-12-08 07:08:44
问题 I have EPD 7.3 and have installed wxPython 2.9 through the Enthought repositories. I tried running winPDB, which requires wxPython and I got this message : This program needs access to the screen. Please run with a Framework build of python, and only when you are logged in on the main display of your Mac. I have seen similar messages from wxPython on Mac, but I haven't found a solution yet. Does anyone know about this message? And, has anyone got WinPDB to work on OS X 10.8 w/ wxPython 2.9?

Running wxPython 2.9 on OS X 10.8 (64 bit)

寵の児 提交于 2019-12-06 16:10:10
I have EPD 7.3 and have installed wxPython 2.9 through the Enthought repositories. I tried running winPDB, which requires wxPython and I got this message : This program needs access to the screen. Please run with a Framework build of python, and only when you are logged in on the main display of your Mac. I have seen similar messages from wxPython on Mac, but I haven't found a solution yet. Does anyone know about this message? And, has anyone got WinPDB to work on OS X 10.8 w/ wxPython 2.9? This error message will happen when the Python used to run a wxPython script is not a full framework

winpdb not working with python 3.3

一个人想着一个人 提交于 2019-12-06 05:04:52
问题 I can't get rpdb2 to run with python 3.3, while that should be possible according to several sources. $ rpdb2 -d myscript.py A password should be set to secure debugger client-server communication. Please type a password:x Password has been set. Traceback (most recent call last): File "/usr/local/bin/rpdb2", line 31, in <module> rpdb2.main() File "/usr/local/lib/python3.3/dist-packages/rpdb2.py", line 14470, in main StartServer(_rpdb2_args, fchdir, _rpdb2_pwd, fAllowUnencrypted, fAllowRemote,

winpdb not working with python 3.3

不羁的心 提交于 2019-12-04 09:03:29
I can't get rpdb2 to run with python 3.3, while that should be possible according to several sources. $ rpdb2 -d myscript.py A password should be set to secure debugger client-server communication. Please type a password:x Password has been set. Traceback (most recent call last): File "/usr/local/bin/rpdb2", line 31, in <module> rpdb2.main() File "/usr/local/lib/python3.3/dist-packages/rpdb2.py", line 14470, in main StartServer(_rpdb2_args, fchdir, _rpdb2_pwd, fAllowUnencrypted, fAllowRemote, secret) File "/usr/local/lib/python3.3/dist-packages/rpdb2.py", line 14212, in StartServer g_module