VSCode error when launching: The following argument was not expected: /c

staticvoidlol
Sat, 03 Feb 2024 12:31:43 +0000
Programming & Scripting

When trying to launch my C++ project from VSCode I get an error popup stating:

The following argument was not expected: /c
Run with --help for more information

Another error pops up in the bottom right with:

Unable to start program '....<path to UnrealEditor.exe>'. Unable to start the Microsoft Visual Studio Debug Console.

The log file just shows this:

Generated code is up to date.
Target is up to date
Total execution time: 0.40 seconds
WriteFileIfChanged() wrote 0 changed files of 0 requested writes.
Timeline:

[ 0.000]
[ 0.000](+0.399) <unknown>
[ 0.399]

I’ve found only one possibly promising thread on the internet: https://www.reddit.com/r/VisualStudio/comments/vacmua/vs2022_unable_to_debug_console_programs/

Seems it might be related to environment variables being too long for the MS Debugger?

This happens on a fresh new empty C++ project as well.
Any ideas?

8 posts - 7 participants