Skip to content

Commit

Permalink
Set RUST_BACKTRACE=1 when using the debugger.
Browse files Browse the repository at this point in the history
  • Loading branch information
CodeMan99 committed Feb 19, 2024
1 parent 4fca865 commit 4d98abb
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
"options": ["init", "inspect", "list", "search"],
"default": "search"
},
// Actually, exactly one argument of the subcommand. Dang it...
{
"id": "enterOptions",
"description": "Pass flag and option arguments",
Expand All @@ -34,7 +35,10 @@
}
},
"args": ["${input:enterCommand}", "${input:enterOptions}"],
"cwd": "${workspaceFolder}"
"cwd": "${workspaceFolder}",
"env": {
"RUST_BACKTRACE": "1"
}
},
{
"type": "lldb",
Expand All @@ -53,7 +57,10 @@
}
},
"args": [],
"cwd": "${workspaceFolder}"
"cwd": "${workspaceFolder}",
"env": {
"RUST_BACKTRACE": "1"
}
}
]
}
}

0 comments on commit 4d98abb

Please sign in to comment.