microsoft / microsoft/vscode-cpptools

Debug Remote-Container GDB: Unable to open raise.c

オープン
#7,401 コメント 2 件 リアクション 0 件 担当者 1 名 GitHub で見る

@WardenGnaw がすでに取り組んでいます。

2021年4月23日 から。

debugger
主要言語
TypeScript
スター
6.2k
フォーク
1.7k
平均マージ
14時間 46分
マージ済み PR(30日)
61

説明

Bug type: Debugger

Describe the bug

  • OS and Version: W10
  • VS Code Version: 1.55.2
  • C/C++ Extension Version: 1.3.1
  • Other extensions you installed (and if the issue persists after disabling them): CMake

this is very similar to #1738
In my case it's in linked docker containers based on WSL2, so it makes sense I imagine.
The fix suggested there does not seem to work though.
the suggested fix:

"setupCommands": [
   {
      "description": "Skip <path> files",
      "text": "-interpreter-exec console \"skip -gfi <path-to-ignore>/**/*\""
   }
]

with path-to-ignore=path/to/glibc

in my case, the error is:

Unable to open 'raise.c': Unable to read file 'vscode-remote://attached-container+7b22636f6e7461696e65724e616d65223a222f6e696674795f6b65706c6572222c2273657474696e6773223a7b226365727450617468223a22433a5c5c55736572735c5c6b696c68655c5c2e646f636b65725c5c6d616368696e655c5c6365727473227d7d/build/glibc-eX1tMB/glibc-2.31/sysdeps/unix/sysv/linux/raise.c' (Error: Unable to resolve non-existing file 'vscode-remote://attached-container+7b22636f6e7461696e65724e616d65223a222f6e696674795f6b65706c6572222c2273657474696e6773223a7b226365727450617468223a22433a5c5c55736572735c5c6b696c68655c5c2e646f636b65725c5c6d616368696e655c5c6365727473227d7d/build/glibc-eX1tMB/glibc-2.31/sysdeps/unix/sysv/linux/raise.c').

I tried to add the rather long vscode-remote://[...]/build but it didn't change anything, the error pops and the file is still not found.

The files in the container are also available locally

How to remove this error or how to give access to these files?

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。