I have a Rust project that using visual studio code as the IDE. When I added the envFile config in visual studio code Version: 1.90.1
:
"envFile": "{workspaceFolder}/.env"
show Internal debugger error: path not found
error when start debugging like this:
this is the full config:
{
// 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": [
{
"type": "lldb",
"request": "launch",
"name": "Debug executable 'chat-hub'",
"envFile": "{workspaceFolder}/.env",
"cargo": {
"args": [
"build",
"--bin=chat-hub",
"--package=chat-hub"
],
"filter": {
"name": "chat-hub",
"kind": "bin"
}
},
"args": [],
"cwd": "${workspaceFolder}"
},
{
"type": "lldb",
"request": "launch",
"name": "Debug unit tests in executable 'chat-hub'",
"cargo": {
"args": [
"test",
"--no-run",
"--bin=chat-hub",
"--package=chat-hub"
],
"filter": {
"name": "chat-hub",
"kind": "bin"
}
},
"args": [],
"cwd": "${workspaceFolder}"
}
]
}
Am I missing something? what should I do to fixed this issue? I have tried to move the envFile to the end of config, but still did not fixed this issue.