← 返回命令列表

Linux command

pdb3.4 命令

网络

复制后可按需替换文件名、目录或参数。

常用示例

Debug Python script

python3.4 -m pdb [script.py]

Set breakpoint in code

import pdb; pdb.set_trace()

Run post-mortem debug

python3.4 -m pdb -c continue [script.py]

说明

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

参数

-c _COMMAND_
Execute command at start.

FAQ

What is the pdb3.4 command used for?

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

How do I run a basic pdb3.4 example?

Run `python3.4 -m pdb [script.py]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does -c _COMMAND_ do in pdb3.4?

Execute command at start.