Closed akhildevelops closed 1 year ago
The log you provided does not seem to match any of the launch configurations above (there's no configuration named "test summarize::test::summarize")
I'm trying to debug by running it directly from the file by clicking on Debug
. You can also see the path of modules summarize(mod) > test(mod) > summarize(function)
~ summarize::test::summarize
Those inlay links are generated by the rust-analyzer
extension. When you click one of them, rust-analyzer generates a launch configuration internally, it does not load one from launch.json
.
AFAIK, you can customize them via undocumented rust-analyzer.debug.engineSettings
configuration setting, e.g. "rust-analyzer.debug.engineSettings": { "lldb": { "env": { "DATABASE_URL": "postgres://postgres:postgres@db/summarizer" } } }
Alternatively, you can use CodeLLDB's launch configuration defaults: "lldb.launch.env": { "DATABASE_URL": "postgres://postgres:postgres@db/summarizer" }
Thanks for the info. I'll let you know if it worked.
Thanks it worked.
OS: UBuntu 22.04 VSCode version: 1.77.3 CodeLLDB version: v1.9.0 Compiler: rustc 1.69.0 Debuggee: aarch64-linux-gnu
Environment variables aren't being read from launch.json. Below is my launch.json file that's autogenerated by codelldb. I've added the env variables later.
Verbose log