Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

An error happened when launch gdb at msys2/bash.exe

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

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
30/100
issue の種類
バグ
明瞭さ
説明が足りない
活発さ
停滞
技術スタック
bash, cpp, vscode

調査の方向性

提供されている launch.json と settings.json から始め、MSYS2 bash プロファイルで stdin と stdout が有効になっている場合に WindowsDebugLauncher.exe がどのように呼び出されるかを調べます。Windows 10 または 11 で、指定された C++ 起動構成を使用してクラッシュを再現し、bash ターミナルをクラッシュさせずにデバッガー入力が機能することを確認します。

索引モデルが issue の本文から書いたものです。

説明

Same software and config,but one is win10 (vscode version may newer) , the other is win11.

launch.json

{
	"version": "0.2.0",
	"configurations": [
		{
			"name": "C++ Launch",
			"type": "cppdbg",
			"request": "launch",
			"program": "${workspaceFolder}/build/Start.exe",
			"args": [
				"-arg1",
				"-arg2"
			],
			"setupCommands": [
				{
					"description": "Enable pretty-printing for gdb",
					"text": "-enable-pretty-printing",
					"ignoreFailures": true
				}
			],
			"stopAtEntry": false,
			"cwd": "${fileDirname}",
			"environment": [],
			"externalConsole": false,
			"MIMode": "gdb",
            "miDebuggerPath": "D:/Users/17269/Documents/Test/Msys2/mingw64/bin/gdb.exe",
			"preLaunchTask": "CMake Build"
		},
	]
}

setting.json

    "terminal.integrated.profiles.windows": {
        "msys64": {
            "path": "D:\\Users\\17269\\Documents\\Test\\Msys2\\usr\\bin\\bash.exe"
        }
    },
    "terminal.integrated.defaultProfile.windows": "msys64"

I could run the launch normally without stdin or stdout.

but when I need them , the bash show

 /usr/bin/env c:\\Users\\17269\\.vscode\\extensions\\ms-vscode.cpptools-1.23.6-win32-x64\\debugAdapters\\bin\\WindowsDebugLauncher.exe --stdin=Microsoft-MIEngine-In-0crzsm0c.qxj --stdout=Microsoft-MIEngine-Out-bm3m2i3p.0mr --stderr=Microsoft-MIEngine-Error-becw4p1q.nmz --pid=Microsoft-MIEngine-Pid-eo4rokdf.wz3 --dbgExe=D:/Users/17269/Documents/Test/Msys2/mingw64/bin/gdb.exe --interpreter=mi
icrosoft-MIEngine-Error-becw4p1q.nmz --pid=Microsoft-MIEngine-Pid-eo4rokdf.wz3 --dbgExe=D:/Users/17269/Documents/Test/Msys2/mingw64/bin/gdb.exe --interpreter=mi ;a58d0036-cb99-44a9-bbfa-91ddf6772ff8

And actually I can't input any thing because it has gone crash

主要言語
C#
スター
861
フォーク
233
平均マージ
21時間 55分
マージ済み PR(30日)
5

環境構築

Codespaces で開く

このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。

  • Dockerfile・Docker Compose ファイルなし
  • プルリクエストのテンプレートなし
  • コントリビューションガイドなし

はじめの一歩

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

microsoft/MIEngine のほかの issue

microsoft/MIEngine の issue をすべて見る

似ている issue

C# の issue をもっと見る

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

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