test.cc
以下のように簡単に書きました。
#include <iostream>
using namespace std;
int main()
{
cout << "Hello world" << endl;
return 0;
}
そして、私は次のようにコンパイルしました:
g++ -g test.cc -o test.o
実行して、次の行gdb
にブレークポイントを設定しました。"Hello world"
$ gdb test.o
(gdb) b 7
(gdb) c
その後、ラインでgdb
停止しますが、実行すると"Hello world"
(gdb) s
関数にステップインできませんcout
。だから私の質問は、どうすればcout
関数にステップインできますか?