by mjw1007 · 5y ago · 0 comments
The video shows the user using their mouse and typing the expression to be printed into a tiny text input.
Part of the attraction of print-style debugging is the convenience of being able to use your main editor UI, along with all the conveniences that provides, to write that expression.
(That might be fancy completion or vi-style editing commands or keyboard macros; it will be different for different programmers.)
If I'm honest, in spite of it not being perfect, it's much better than regular printf. The other very nice feature is dataflow (click on a variable value, and it tells you where it comes from, and it handles copies seamlessly), which makes a large number of debugging tasks trivial.