DEV Community

Discussion on: Build and Debug C++ Application with VSCode and MSVC

Collapse
 
shockvawe profile image
Yusuf Umut Piynar

Solved the issue, took my 4 hours. Just switching VSCODE terminal to CMD from PS would probably solve the issue (or maybe not idk) but this definitely does.

Change the problematic line with this:

"command": "cmd",
"args": ["/C", "if not exist ${config:buildDir} mkdir ${config:buildDir}"]

Collapse
 
masoudr profile image
Masoud Rahimi

Hi, I'm sorry I haven't check the community for a while.
Yes you are right you need the set CMD as default shell because scripts are based on it.