From 2a940e582f67c06fad1f8f20d27d760a16c9b1e0 Mon Sep 17 00:00:00 2001 From: mborgerson Date: Fri, 27 Dec 2024 01:40:20 -0700 Subject: [PATCH] Add notes on how to trigger build from within VS Code --- docs/docs/dev/debug/host.md | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/docs/docs/dev/debug/host.md b/docs/docs/dev/debug/host.md index 9633d4335..a0ab334c5 100644 --- a/docs/docs/dev/debug/host.md +++ b/docs/docs/dev/debug/host.md @@ -42,6 +42,27 @@ Install [VSCode](https://code.visualstudio.com/download){target=_blank} and the } ``` + To build from within VS Code, create a file at `xemu\.vscode\tasks.json` with the following: + + ```json + { + "version": "2.0.0", + "tasks": [ + { + "label": "Build xemu", + "type": "shell", + "command": "bash.exe -c 'pushd /home/user/xemu; ./build_wrapper.sh'", + "options": {}, + "group": { + "kind": "build", + "isDefault": true + }, + "problemMatcher": [] + } + ] + } + ``` + === "Ubuntu" Create a file at `xemu/.vscode/launch.json` with the following contents.