LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

pdb3.4

python debugger

TLDR

Debug Python script
$ python3.4 -m pdb [script.py]
copy
Set breakpoint in code
$ import pdb; pdb.set_trace()
copy
Run post-mortem debug
$ python3.4 -m pdb -c continue [script.py]
copy

SYNOPSIS

python3.4 -m pdb [options] script [args]

DESCRIPTION

pdb is the Python debugger. Interactive debugging environment.The tool provides breakpoints and inspection. Part of Python standard library.

PARAMETERS

SCRIPT

Python script to debug.
-c COMMAND
Execute command at start.
Debugger commands:- n - next line- s - step into- c - continue- b - breakpoint- p - print- q - quit

CAVEATS

Version specific (3.4). Same as pdb for other versions. Interactive debugger.

HISTORY

pdb has been part of Python standard library since early versions.

SEE ALSO

python(1), ipdb(1), pudb(1)

Copied to clipboard
Kai