#vscode debug config?
4 messages · Page 1 of 1 (latest)
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
}
]
}
I'll give this a try thanks!
I keep getting linker errors when trying to run the test exe under target/debug/deps as well as my main build exe so maybe it only works with dynamic linking off?