LoginSignup
9
7

More than 5 years have passed since last update.

gdbで実行ステップ行を戻す方法

Posted at

gdbでデバッグをする場合VSのように実行ステップ行を戻すには、以下の手順でデバッグを行う。

  1. ステップを戻して調べたい箇所の直前で一度中断する
  2. recordコマンドを実行する
  3. nextコマンドでステップを進め、reverse-nextコマンドでステップを戻す

詳しい内容は以下のリンク先を参照する。

9
7
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
9
7