{ "version": "0.2.0", "configurations": [ { // Builds, then starts the game through the launcher (no debugger in the game). // The game folder comes from build/x86-debug/sacredK.ini: run the // launcher once with --game-dir "" (README.md). "name": "Run Sacred (sacredK)", "type": "cppvsdbg", "request": "launch", "program": "${workspaceFolder}/build/x86-debug/sacredK.exe", "args": ["log"], "cwd": "${workspaceFolder}/build/x86-debug", "preLaunchTask": "Build x86-debug", "console": "internalConsole" }, { // Debug our DLL inside the game: set [debug] WaitForDebugger=1 in // build//sacredK.ini, start "Run Sacred", then run this and // pick sacred.exe. The DLL waits (up to 60 s) before installing hooks. "name": "Attach to sacred.exe", "type": "cppvsdbg", "request": "attach", "processId": "${command:pickProcess}", "symbolSearchPath": "${workspaceFolder}/build/x86-debug" } ] }