How to compile program with debug symbols information under Eclipse?


#1

I configured RustDT https://github.com/RustDT/RustDT/blob/latest/documentation/UserGuide.md
Now Eclipse can build and run my program, but can not debug it!
Error: No source available for "main() at 0x4015ca"

I added next section to Cargo.toml

# The development profile, used for `cargo build`
[profile.dev]
opt-level = 0  # Controls the --opt-level the compiler builds with
debug = true   # Controls whether the compiler passes `-g`
rpath = false  # Controls whether the compiler passes `-C rpath`
lto = false    # Controls `-C lto` for binaries and staticlibs
debug-assertions = true  # Controls whether debug assertions are enabled
codegen-units = 1 # Controls whether the compiler passes `-C codegen-units`
                  # `codegen-units` is ignored when `lto = true`

But nothing happened :cry:

How to compile my program with debug symbols information?