LoginSignup
0
1

More than 5 years have passed since last update.

pdbにおいて変数名がデッバガコマンドと衝突しているとき

Posted at

!を使う

pdbにおいて変数名がデバッガコマンド(例えば、h(elp), w(here), n(ext)など)と同一であり、衝突している場合、デバッガは変数ではなくデバッガコマンドとして解釈してしまう。

そこで、!を表示したい変数名のプレフィックスとして入力すれば、変数として評価される。

変数nを表示したい場合は
> !n
とする。

参考

0
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
1