# Macro Creation Tutorial

**URL:** <https://klipper.discourse.group/t/macro-creation-tutorial/30>\
**Category:** Macros\
**Created:** [March 22, 2021, 3:00pm UTC](https://klipper.discourse.group/t/macro-creation-tutorial/30 "2021-03-22T15:00:59Z")\
**Posts on this page:** 1\
**Showing post:** 9

<div class="post-metadata">

**Author:** ![ssackett](https://yyz2.discourse-cdn.com/free1/user_avatar/klipper.discourse.group/ssackett/32/769_2.png) [@ssackett](https://klipper.discourse.group/u/ssackett)\
**Post date:** [January 17, 2022, 1:36am UTC](https://klipper.discourse.group/t/macro-creation-tutorial/30/9 "2022-01-17T01:36:15Z")

</div>

Can you discuss techniques for debugging macros. I am interested in ways to view variable values (perhaps by sending output to the Mainsail console). Also how to view the output of a macro without the need to send it to the 3D printer to see if the result is correct (it’s a pain to warm the printer up and start a print to see if the output is correct, yes that’s my current technique). I would also like to find a way to show the parameters (params) being provided by the caller to the macro and a convenient way to test Jinja expressions. I am an experienced programmer and my interest is in how to debug macros in the context of the Mainsail environment.

---

_[View the full topic](https://klipper.discourse.group/t/macro-creation-tutorial/30)._
