2024-04-27 05:55 AM
Hi
I am having problems setting breakpoints when using the debugger in VS Code. I can step through manually but cannot seem to set breakpoints. Before starting to debug I can add a breakpoint at 50
But when I run the code the breakpoint changes to a different line number outside of the loop line 54. Removed the target and reflashed in case the code is out of sync but do not understand.
If I attempt to add a breakpoint in says
New install (because 24.04 came out) but it did not work on the old install either.
Thanks all - as ever
Solved! Go to Solution.
2024-04-27 06:19 AM
Is this built with or without optimization?
2024-04-27 06:19 AM
I think this maybe me. Noticed
[profile.dev] opt-level = 3
In my code. When at PC will check
2024-04-27 06:19 AM
Is this built with or without optimization?
2024-04-27 04:18 PM
[profile.dev]
opt-level = 0
Setting to no optimization in Cargo.toml and all works.