I have noticed that the debug locator implemented in Rust builds an executable in such a way that there are no source maps.
After running a debug test runnable an executable named debug_build is placed in the project root. lldb ./debug_build runs it with a debugger and after stopping at any breakpoint l command always fails with no source available. I have structured my tests as documented in https://odin-lang.org/docs/testing/#multiple-packages and I have noticed that building a test executable with the following command solves this problem: odin build tests -build-mode:test -debug -use-single-module. Most likely the fix would be to just add -use-single-module, since using -debug without it emits errors about missing symbols for even built-in libraries
I have noticed that the debug locator implemented in Rust builds an executable in such a way that there are no source maps.
After running a debug test runnable an executable named
debug_buildis placed in the project root.lldb ./debug_buildruns it with a debugger and after stopping at any breakpointlcommand always fails with no source available. I have structured my tests as documented in https://odin-lang.org/docs/testing/#multiple-packages and I have noticed that building a test executable with the following command solves this problem:odin build tests -build-mode:test -debug -use-single-module. Most likely the fix would be to just add-use-single-module, since using-debugwithout it emits errors about missing symbols for even built-in libraries