Debugging Python Applications

Debugging is the process of examining your application for errors. The process of debugging is accomplished by setting breakpoints and watches in your code and running it in the debugger. This enables you to execute your code one line at a time and examine the state of your application in order to discover any problems.

Setting Up Python Projects for Debugging

  1. Check Debugger options: Go to Tools > Options > Python and click on the Debugger tab :
  2. Setting the breakpoints: In the Source Editor, click in the left margin next to the desired line of code where you want to set a breakpoint.

Starting the Debugger

After the breakpoints have been set, click on Debug and select the appropriate option to start the debugging session.

Debugger Windows

In addition to the Default Shell window, there are windows which display other runtime configurations of the application currently being debugged:

See also
Python Project Tasks: Quick Reference

Legal Notices