this post was submitted on 11 Apr 2025
26 points (100.0% liked)
Rust
6896 readers
41 users here now
Welcome to the Rust community! This is a place to discuss about the Rust programming language.
Wormhole
Credits
- The icon is a modified version of the official rust logo (changing the colors to a gradient and black background)
founded 2 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
We use Leptos at $DAYJOB for a web-UI of medium complexity. Debugging is mainly a matter of
println
-debugging, to be honest. Well, with log statements. We usetracing-web
for logging to the browser console (if you're usinglog
rather thantracing
, you can do the same withconsole_log
). And thenconsole_error_panic_hook
to make panics visible in the browser console.None of this is particularly great. Sometimes you get a stacktrace and no chance to try to debug it, because it happens in compiled WebAssembly. Sometimes you run into reactivity issues, which you just have to try to reproduce and narrow down why it happens.
You do gain experience over time and can spot issues more quickly or code it correctly upfront. And well, I've never seen a frontend framework, which was immediately intuitive in its reactivity or similar. Humans are just a messy interface.
Yeah, not sure what else to add. The upgrade to Leptos 0.7 was definitely a challenge, but we managed to push through, although I would not have wanted to do that without some of the experiences I've made with personal projects.
Feel free to ask questions, if you want to know anything more concrete.