Visual Studio Codeでデバッグをしているとlibc-start.c not found
というエラーが出ることがあります。下の画像の右下に出るようなものです。
これについて質問しているものがgithubにありました。Unable to open 'libc-start.c': File not found...
以下、回答から引用です。
You should only get the message when you tell the debugger to step into code that you don't have access to (i.e. stepping past a main's return). Are you seeing this when just running your program with no breakpoints set?
このエラーはステップオーバー(F10)等でプログラムの最後の文を実行してしまうと出るようで、続行(F5)等で終了するようにすれば出ないです。ステップオーバーで最後の処理を実行するとmainのリターン処理で飛ばされる場所(アクセス権限のない場所)へアクセスしようとしてエラーが出ているみたいです。
コメント