From 76c53e83d1e037bb071fde9d078c006bcf225f6e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AD=9F=E5=AE=81?= Date: Sun, 14 Dec 2025 11:21:00 +0000 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20.devcontainer/devcontainer?= =?UTF-8?q?.json?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .devcontainer/devcontainer.json | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index 1b76c72..db9a3c1 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -1,7 +1,7 @@ { "name": "DevContainerExample", "image": "mcr.microsoft.com/devcontainers/base:dev-ubuntu-20.04", - "postCreateCommand": "gcc -v", + "postCreateCommand": "sudo apt-get install -y gdb", "customizations": { "vscode": { "settings": { @@ -20,5 +20,6 @@ "onAutoForward": "notify" } }, - "postAttachCommand": "make" + "initializeCommand": "gdb -ex 'set confirm off' -ex quit", // 初始化GDB配置 + "postAttachCommand": "make debug" } \ No newline at end of file