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