Fill out above information andin all cases attach yourklippy.logfile (use zip to compress it, if too big). Pasting yourprinter.cfgis not needed Be sure to check our “Knowledge Base” Category first. Most relevant items, e.g. error messages, are covered there
Describe your issue:
Probably lame question but I honestly wasnt able to google any answer:
How do I print current value of the variable to the console? (I am debugging slow extrusion and would like to know what is default/current value of max_extrude_only_velocity)
I took this from the klipper templates page. Hopefully will be of use to you M117 with show a message on your klipper screen. Not sure it appears in console. But hopefully useful for your purposes.
It is often useful to inspect parameters passed to the macro when it is called. These parameters are available via the params pseudo-variable. For example, if the macro:
[gcode_macro SET_PERCENT]
gcode:
M117 Now at { params.VALUE|float * 100 }%
were invoked as SET_PERCENT VALUE=.2 it would evaluate to M117 Now at 20%. Note that parameter names are always in upper-case when evaluated in the macro and are always passed as strings. If performing math then they must be explicitly converted to integers or floats.