#vscode debug config?

4 messages · Page 1 of 1 (latest)

viscid widget
#

Anyone have a working vscode debug config launch.json for windows? Bonus if it works for unit tests with nextest. I try to use the built in debugger from codelens, but I get an error saying "Process prematurely exited"

patent seal
#

this is my current one. it is slightly broken though as I have to compile from my console first before running through the debugger

{
   // Use IntelliSense to learn about possible attributes.
   // Hover to view descriptions of existing attributes.
   // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
   "version": "0.2.0",
   "configurations": [
       {
           "name": "Debug Rust",
           "type": "cppvsdbg", // Or "lldb" if using CodeLLDB for some reason, but cppvsdbg for Windows
           "request": "launch",
           "program": "${workspaceFolder}/target/debug/project_love_star.exe", // Replace with your executable name
           "args": [],
           "stopAtEntry": false,
           "cwd": "${workspaceFolder}",
           "environment": [
               {
                   "name": "BEVY_ASSET_ROOT",
                   "value": "${workspaceFolder}"
               }
           ],
           "externalConsole": true,
           // "preLaunchTask": "cargo build" // Optional: ensures the project is built before debugging
       }
   ]
}
viscid widget
#

I'll give this a try thanks!

viscid widget