qmk / qmk_toolbox

A Toolbox companion for QMK Firmware
https://qmk.fm/toolbox
MIT License
2.66k stars 519 forks source link

Delayed debug output #444

Open jkavalec opened 10 months ago

jkavalec commented 10 months ago

When I use dprintf statement to output some debug information, this is always delayed.

Example:

What could be the problem? I had this happening on both Mac and Windows, (ATmega32U4 Board) and it makes debugging pretty hard

fauxpark commented 10 months ago

Make sure your print statements end in a newline character. The toolbox will not output anything until it receives a complete line.

jkavalec commented 10 months ago

Thank you for good advice.

This did help, and it is now usable, yet the output is always delayed by 1 press, so when action takes place and print statement is issued, it always takes one additional press to get the output.

fauxpark commented 10 months ago

Impossible to tell what's wrong without seeing your code.