Debugging Python with pdb at the command line

Veröffentlicht am: 03 Mai 2014
auf dem Kanal: Vincent Knight
6,956
58

In this video I briefly show how to debug a function interactively at the command line using the standard pdb library.

The commands I use are:

- list (lists the code)
- s (steps through)
- p (print the current value of a variable)
- n (moves through code, without going through function definitions)
- break (create a break point or view current break points)
- c (continues until reaching an enabled break point)
- disable (disable a break point)
- enable (enable a break point)
- clear (delete a break point)
- tbreak (create a temporary break point)

finally I also talked about the very useful ability to create break points that only work for given conditions.


Auf dieser Seite können Sie das Online-Video Debugging Python with pdb at the command line mit der Dauer stunde minuten sekunde in guter Qualität ansehen, das der Benutzer Vincent Knight 03 Mai 2014 hochgeladen hat, den Link mit Freunden und Bekannten teilen, dieses Video wurde auf Youtube bereits 6,956 Mal angesehen und es wurde von 58 den Zuschauern gefallen. Viel Spaß beim Betrachtenden Zuschauern gefallen!