From f556dd78756291126127c82673c571433a89cb4d Mon Sep 17 00:00:00 2001 From: Douglas Lassance Date: Sun, 30 Mar 2025 22:39:39 -0700 Subject: [PATCH] Update Visual Studio Code configuration for macOS systems --- .../configuring_an_ide/visual_studio_code.rst | 30 +++++++++++++------ 1 file changed, 21 insertions(+), 9 deletions(-) diff --git a/contributing/development/configuring_an_ide/visual_studio_code.rst b/contributing/development/configuring_an_ide/visual_studio_code.rst index e74dfbed9..7861c34e3 100644 --- a/contributing/development/configuring_an_ide/visual_studio_code.rst +++ b/contributing/development/configuring_an_ide/visual_studio_code.rst @@ -146,20 +146,32 @@ To run and debug the project you need to create a new configuration in the ``lau "preLaunchTask": "build" } - .. code-tab:: js Mac + .. code-tab:: js macOS_x86_64 { "name": "Launch Project", "type": "lldb", - "request": "custom", - "targetCreateCommands": [ - "target create ${workspaceFolder}/bin/godot.macos.editor.dev.x86_64" - ], + "request": "launch", + "program": "${workspaceFolder}/bin/godot.macos.editor.x86_64", // Change the arguments below for the project you want to test with. // To run the project instead of editing it, remove the "--editor" argument. - "processCreateCommands": [ - "process launch -- --editor --path path-to-your-godot-project-folder" - ] + "args": ["--editor", "--path", "path-to-your-godot-project-folder"], + "cwd": "${workspaceFolder}", + "preLaunchTask": "build" + } + + .. code-tab:: js macOS_arm64 + + { + "name": "Launch Project", + "type": "lldb", + "request": "launch", + "program": "${workspaceFolder}/bin/godot.macos.editor.arm64", + // Change the arguments below for the project you want to test with. + // To run the project instead of editing it, remove the "--editor" argument. + "args": ["--editor", "--path", "path-to-your-godot-project-folder"], + "cwd": "${workspaceFolder}", + "preLaunchTask": "build" } .. figure:: img/vscode_2_launch.json.png @@ -173,7 +185,7 @@ To run and debug the project you need to create a new configuration in the ``lau Due to sporadic performance issues, it is recommended to use LLDB over GDB on Unix-based systems. Make sure that the `CodeLLDB extension `_ - is installed. + is installed for configurations using `lldb`. If you encounter issues with lldb, you may consider using gdb (see the LinuxBSD_gdb configuration).