[Pydev-users] [pydev - Users] Debug run doesn't stop at breakpoint
Brought to you by:
fabioz
From: SourceForge.net <no...@so...> - 2006-06-02 15:35:16
|
Read and respond to this message at: https://sourceforge.net/forum/message.php?msg_id=3761044 By: billcchkk Good morning, I'm using PyDev 1.0.8 on Windows XP with Eclipse 3.1. I am working with TurboGears 0.9a6, and am attempting to debug a unit test. Although the standard unit test runner for TurboGears is 'nose', I've switched to using straight python unittest so I can run it from PyDev's "Run As" -> "Python unit-test" or "Python Run" (I set a main). This all works fine. However, if I try to debug the unit-test by using "Debug As" -> "Python Run", I cannot get it to stop at the set breakpoint. This only happens if I import a turbogears package, so it might be a PYTHONPATH problem, but there is no indication what the problem might be. It runs normally, and I see the test results, but the debugger will not stop at the breakpoint. The unittest file is: --- begin test_test.py --- import unittest #from turbogears import testutil class testTest(unittest.TestCase): def testAssert(self): assert "Test" == "Test" if __name__ == "__main__": unittest.main() --- end test_test.py --- I set a breakpoint at the unittest.main() line, and run it as a debug run, and everything works fine. If I uncomment the 'from turbogears import testutil' line, it runs, but does not stop at the breakpoint. Any clues? All of the TurboGears components are in eggs in Python24/Lib/site-packages, which means that they have path information in Python24/Lib/site-packages/<whatever>.pth files. Perhaps the debugger is not picking those up, so it doesn't know how to resolve the import? Pure conjecture, of course. Any clues? Thanks, - Bill ______________________________________________________________________ You are receiving this email because you elected to monitor this forum. To stop monitoring this forum, login to SourceForge.net and visit: https://sourceforge.net/forum/unmonitor.php?forum_id=293649 |