Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | rawberry |
I’m having difficulties debugging a specific scene with VSCode. My “Launch in Editor” profile works just fine.
Here is the launch profile and task for “Launch (Select Scene)”:
{
"name": "Launch (Select Scene)",
"type": "godot-mono",
"request": "launch",
"mode": "executable",
"preLaunchTask": "build",
"executable": "C:/dev/GameDevelopment/GodotEngine/Godot_v3.5.1-stable_mono_win64/Godot_v3.5.1-stable_mono_win64.exe\r",
"executableArguments": [
"--path",
"${workspaceRoot}",
"${command:SelectLaunchScene}"
]
}
And the task
"tasks": [
{
"label": "build",
"command": "C:/dev/GameDevelopment/GodotEngine/Godot_v3.5.1-stable_mono_win64/Godot_v3.5.1-stable_mono_win64.exe\r",
"type": "process",
"args": [
"--build-solutions",
"--path",
"${workspaceRoot}",
"--no-window",
"-q"
],
"problemMatcher": "$msCompile"
}
]
And the error message from my VSCode terminal (not sure why it’s truncating things)
--build-solutions --path C:\dev\GameDevelopment\GodotProjects\StarSwarm --no-window -q dot_v3.5.1-stable_mono_win64.exe
" does not exist. rocess failed to launch: Path to shell executable "C:\dev\GameDevelopment\GodotEngine\Godot_v3.5.1-stable_mono_win64\Godot_v3.5.1-stable_mono_win64.exe
I asked ChatGPT for help, and it pointed out the errant \r
characters in the paths.
Wow.
Problem solved.
rawberry | 2023-03-21 15:47