2024-04-29 02:04:42 发布
网友
有没有办法禁用默认的pdb库命令别名?我当前使用的变量与pdbset_trace()快捷方式别名同名。例如,我有一个名为s的变量,但是在使用set_trace()时,s是{}的快捷方式。这是许多类似的a和{}中的一个默认别名,它们分别表示args和{}。在
pdb
set_trace()
s
a
args
所以当我试图通过输入s命令来检查我的s变量时,它会运行step,这不是我想要的。在
step
谢谢!在
引用Pdb文档:
! statementExecute the (one-line) statement in the context of the current stack frame. The exclamation point can be omitted unless the first word of the statement resembles a debugger command.
! statement
Execute the (one-line) statement in the context of the current stack frame. The exclamation point can be omitted unless the first word of the statement resembles a debugger command.
如果我没弄错的话,这应该是你想要的
引用Pdb文档:
如果我没弄错的话,这应该是你想要的
相关问题 更多 >
编程相关推荐