Skip to content

Default debug tasks that's implement in Rust does not support source maps #68

Description

@domust

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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions