Skip to main content

Debugging

Debuggers

On one hand, Flutter code can be debugged. Flutter has built-in support for using debuggers. For example, you can run app with breakpoints. Since Rust is nothing but a compiled binary file (e.g. something.so) added to Flutter, all Flutter utilities can be used as normal (for both native and web platform).

On the other hand, Rust code can also be debugged. For example, here is a demo to debug Rust code using VSCode, and here is another demo to debug using XCode.

Debugging by printing

Just use normal logging to debug - there is nothing special.

As for how to do logging: For Dart, it is print(). For Rust, it is info!() / warn!() / ... after configuring the loggers.