When I try to debug c++ file, I can't do it if it contains any spacebars in path to it (everything gets stuck at the "Starting build..."). for example: /home/vitaliy/Documents/My notes/a.cpp.
It stops in something like this: doesn't work
But if I remove spaces and my path will look like this: /home/vitaliy/Documents/Mynotes/a.cpp. It will work fine.
Here is my settigs.json:
{
"workbench.colorTheme": "Visual Studio Dark - C++",
"workbench.iconTheme": "vscode-icons",
"code-runner.runInTerminal": true,
"code-runner.saveFileBeforeRun": true,
"vsicons.dontShowNewVersionMessage": true,
"security.workspace.trust.untrustedFiles": "open",
"explorer.confirmDelete": false,
"editor.mouseWheelZoom": true,
"terminal.integrated.enableMultiLinePasteWarning": false,
"files.exclude": {
"*.bin": true,
"*.exe": true
},
"code-runner.saveAllFilesBeforeRun": true,
"code-runner.executorMap":{
"javascript": "node",
"java": "cd $dir && javac $fileName && java $fileNameWithoutExt",
"c": "cd $dir && gcc $fileName -o $fileNameWithoutExt && $dir$fileNameWithoutExt",
"cpp": "cd $dir && g++ $fileName -o $fileNameWithoutExt && $dir$fileNameWithoutExt",
"objective-c": "cd $dir && gcc -framework Cocoa $fileName -o $fileNameWithoutExt && $dir$fileNameWithoutExt",
"php": "php",
"python": "python -u",
"perl": "perl",
"perl6": "perl6",
"ruby": "ruby",
"go": "go run",
"lua": "lua",
"groovy": "groovy",
"powershell": "powershell -ExecutionPolicy ByPass -File",
"bat": "cmd /c",
"shellscript": "bash",
"fsharp": "fsi",
"csharp": "scriptcs",
"vbscript": "cscript //Nologo",
"typescript": "ts-node",
"coffeescript": "coffee",
"scala": "scala",
"swift": "swift",
"julia": "julia",
"crystal": "crystal",
"ocaml": "ocaml",
"r": "Rscript",
"applescript": "osascript",
"clojure": "lein exec",
"haxe": "haxe --cwd $dirWithoutTrailingSlash --run $fileNameWithoutExt",
"rust": "cd $dir && rustc $fileName && $dir$fileNameWithoutExt",
"racket": "racket",
"scheme": "csi -script",
"ahk": "autohotkey",
"autoit": "autoit3",
"dart": "dart",
"pascal": "cd $dir && fpc $fileName && $dir$fileNameWithoutExt",
"d": "cd $dir && dmd $fileName && $dir$fileNameWithoutExt",
"haskell": "runhaskell",
"nim": "nim compile --verbosity:0 --hints:off --run",
"lisp": "sbcl --script",
"kit": "kitc --run",
"v": "v run",
"sass": "sass --style expanded",
"scss": "scss --style expanded",
"less": "cd $dir && lessc $fileName $fileNameWithoutExt.css",
"FortranFreeForm": "cd $dir && gfortran $fileName -o $fileNameWithoutExt && $dir$fileNameWithoutExt",
"fortran-modern": "cd $dir && gfortran $fileName -o $fileNameWithoutExt && $dir$fileNameWithoutExt",
"fortran_fixed-form": "cd $dir && gfortran $fileName -o $fileNameWithoutExt && $dir$fileNameWithoutExt",
"fortran": "cd $dir && gfortran $fileName -o $fileNameWithoutExt && $dir$fileNameWithoutExt"
},
"editor.bracketPairColorization.enabled": true,
"editor.accessibilitySupport": "off",
"audioCues.lineHasError": "off",
"audioCues.lineHasBreakpoint": "off",
"editor.fontFamily": "'DroidSansMono Nerd Font Mono'",
"settingsSync.ignoredSettings": [
"editor.fontFamily"
],
}
The code I'm running:
#include <bits/stdc++.h>
using namespace std;
void solve() {
cout << "adf as";
}
int main() {
// freopen("input.txt", "r", stdin);
// freopen("output.txt", "w", stdout);
int t = 1;
while(t--) solve();
}