开发者

How to patch Python in order to insert BreakPoints using IDLE on MAC

开发者 https://www.devze.com 2023-02-05 14:09 出处:网络
A patch issue6075_py3k.patch from bugs.python.org is supposed to fix this problem. In the terminal, I copied the patch file into Idlelib directory where Bindings.py and EditorWindow.py are located and

A patch issue6075_py3k.patch from bugs.python.org is supposed to fix this problem. In the terminal, I copied the patch file into Idlelib directory where Bindings.py and EditorWindow.py are located and proceeded by typing patch -p2 issue6075_py3k.patch. The patch was successful. I fired up开发者_如何学C IDLE and I still can't use Breakpoints. What am I doing wrong?


Which version of Python did you patch? And which directory? There are various reason why it might not work. Make sure you are trying to use it correctly. You need to left click on a source line in an IDLE editor window while holding the Control key to set a breakpoint there. Then you'll need to enable the IDLE Debugger, when the Shell window is active, before running the program.

EDIT: The Issue6075 patch does not address the IDLE breakpoints problem (that is for building with Cocoa Tk 8.5, not an issue for the Python 3.1 installer). The breakpoint problem is covered in Issue 10404; download and install the patch for it.

0

精彩评论

暂无评论...
验证码 换一张
取 消