Skip to content

Commit 89eaa1f

Browse files
authored
Merge pull request #10825 from douglaslassance/contribute-vscode-macos
Update Visual Studio Code configuration for macOS systems
2 parents 88fc711 + f556dd7 commit 89eaa1f

File tree

1 file changed

+21
-9
lines changed

1 file changed

+21
-9
lines changed

contributing/development/configuring_an_ide/visual_studio_code.rst

Lines changed: 21 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -146,20 +146,32 @@ To run and debug the project you need to create a new configuration in the ``lau
146146
"preLaunchTask": "build"
147147
}
148148

149-
.. code-tab:: js Mac
149+
.. code-tab:: js macOS_x86_64
150150

151151
{
152152
"name": "Launch Project",
153153
"type": "lldb",
154-
"request": "custom",
155-
"targetCreateCommands": [
156-
"target create ${workspaceFolder}/bin/godot.macos.editor.dev.x86_64"
157-
],
154+
"request": "launch",
155+
"program": "${workspaceFolder}/bin/godot.macos.editor.x86_64",
158156
// Change the arguments below for the project you want to test with.
159157
// To run the project instead of editing it, remove the "--editor" argument.
160-
"processCreateCommands": [
161-
"process launch -- --editor --path path-to-your-godot-project-folder"
162-
]
158+
"args": ["--editor", "--path", "path-to-your-godot-project-folder"],
159+
"cwd": "${workspaceFolder}",
160+
"preLaunchTask": "build"
161+
}
162+
163+
.. code-tab:: js macOS_arm64
164+
165+
{
166+
"name": "Launch Project",
167+
"type": "lldb",
168+
"request": "launch",
169+
"program": "${workspaceFolder}/bin/godot.macos.editor.arm64",
170+
// Change the arguments below for the project you want to test with.
171+
// To run the project instead of editing it, remove the "--editor" argument.
172+
"args": ["--editor", "--path", "path-to-your-godot-project-folder"],
173+
"cwd": "${workspaceFolder}",
174+
"preLaunchTask": "build"
163175
}
164176

165177
.. 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
173185

174186
Due to sporadic performance issues, it is recommended to use LLDB over GDB on Unix-based systems.
175187
Make sure that the `CodeLLDB extension <https://marketplace.visualstudio.com/items?itemName=vadimcn.vscode-lldb>`_
176-
is installed.
188+
is installed for configurations using `lldb`.
177189

178190
If you encounter issues with lldb, you may consider using gdb (see the LinuxBSD_gdb configuration).
179191

0 commit comments

Comments
 (0)