defmt log messages are unfindable in VSCode debugger - but are present on the console when running direct from cargo... #2420
-
I'm working on getting someone else's "hello world" app running via embassy_executor on an STMF303 with probe_rs and with "cargo run --bin hello" it works as expected. But running within vscode and the probe_rs extension it all appears to work (I can even set breakpoints etc.) but I never see my defmt_rtt message (info!("Hello World!")). I've setup my launch.json per "No DEFMT output" from https://probe.rs/docs/knowledge-base/troubleshooting/ and still no joy. I can get lots of other debug output from other crates behind the scenes that I don't see when running directly from the console, but I can't see the output from my "Hello World" message. I've done a lot of playing around with the assorted logging options but I'm still, obviously, missing something. I'd appreciate ideas as to what I should try next. Thanks in advance! |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 21 replies
-
There is obviously some weirdness/subtlety in the combination of your setup versus what probe-rs does. I use RTT every day, and it is quite reliable under VSCode. Is there any chance you can share a minimum reproduce-able repo so I can debug? |
Beta Was this translation helpful? Give feedback.
-
@bugadani In this repo, the I seem to remember that you did some magic a while ago to make sure VSCode validates these entries. Do you remember what we need to do to flag this kind of typo? |
Beta Was this translation helpful? Give feedback.
-
@anotherstevest2 Can you please confirm that it works for you when you use |
Beta Was this translation helpful? Give feedback.
-
Closing this issue, as any attempts to do additional configuration validation will be implemented on the |
Beta Was this translation helpful? Give feedback.
@bugadani In this repo, the
launch.json
has"rttEnable": true
, instead of"rttEnabled": true
I seem to remember that you did some magic a while ago to make sure VSCode validates these entries. Do you remember what we need to do to flag this kind of typo?