debugging python with IDLE

来源:互联网 发布:js 中 json点不出来 编辑:程序博客网 时间:2024/04/30 23:43

1. start IDLE

“Python 2.5”→“IDLE(Python GUI)”


2. open your source file window

From python shell, select file->open...


3. show debug control

From python shell, select Debug->Debuger

4. start running

From the source file window, select Run->Run Module


5. debugging with Debug Control

Step: step into

Over: step over

Out: step out

Go: run...

breakpoint: set and clear breakpoint in the source file window with right click menu at the line you want

0 1