RMK uses defmt as the default logger, which works great if you have a debug probe. If you don’t have a debug probe, you can still view logs over USB by configuring USB as a serial port.
To enable USB logging, disable the default features and then enable the usb_log feature in Cargo.toml:
Don't forget to enable all other features that you need, especially the default ones.
To view the logs, you'll need to install a serial port monitor. Open your serial monitor, select the port corresponding to your keyboard, and connect. The logs will be displayed in the monitor window. Note that logs from the boot stage cannot be captured by the USB logger. You will only be able to see logs after the serial port connection is established.
Some microcontrollers (like ESP32S3) don't have enough USB endpoints, so USB logging cannot be enabled for those microcontrollers. To enable USB logging, make sure that your microcontroller has at least 5 In + 4 OUT endpoints available (except the control endpoint, EP0).