デバッガー LLDB の使用に問題がありました。
「main.c」に「ac」などの別のファイルを含め、「ac」にブレークポイントを設定すると、ブレークポイントは停止しません。
他の誰かがこれを得ていますか?
わかりました、これが例です
// main.c
#include "a.c"
int main()
{
test();
}
// a.c
void test()
{
return; // (Using UI to)set break point here, the gdb will stop, and lldb will not
}
================================================== ====================
トロイの木馬へ: Xcode 4.6.3 コマンド ライン ユーティリティでこれらの手順を試しましたが、結果はあなたのものと同じですが、私の問題は GUI にあります。
マウスを使用して "ac" にブレーク ポイントを設定すると、動作しません。
main() で停止しようとしましたが、このコマンド「br list」を入力すると、コンソールに次のメッセージが表示されます。
(lldb) br list
Current breakpoints:
1: file ='a.c', line = 13, locations = 0 (pending)
2: file ='main.c', line = 15, locations = 1, resolved = 1
2.1: where = test`main + 15 at main.c:15, address = 0x0000000100000f3f, resolved, hit count = 1
(lldb)
コマンドラインユーティリティを使用してログが必要な場合は、教えてください、ありがとう〜