How debug a macro?

Basic Information:

Printer Model: Vcore 3
MCU / Printerboard: Octopus + EBB42
klippy.log : NOT AN ISSUE

Fill out above information and in all cases attach your klippy.log file. Pasting your printer.cfg is not needed

Describe your issue:

Is there a way to check if a macro is well built, before running it on a print job?

The thing is that I want the slicer to execute the STAR_PRINT macro… and apparently I haven’t written it correctly… giving me an error… and I wanted, if possible, to avoid this. Not only for this macro, but for future ones…

The doubt is not about the macro itself… but since we are. This is the macro that gives me an error:

[gcode_macro EMPEZAR_IMPRESION]
BED_MESH_PROFILE LOAD="Mesh"
gcode:
    G1 Z15.0 F6000 ;Move the platform down 15mm    ; Prime the extruder
    G92 E0
    G1 F200 E3
    G92 E0

Would be helpful if we know what error.

Klipper can do a syntax check.

grafik

True, sorry…

Print out of limits…

Think cura send relative coordinate, and Klipper thinks they was absolute… Or… 0,0 in cura was configure as bed center but in Klipper its a square…

How I can solve?

You could maybe check in Cura under Machine Settings whether the Origin at center option is checked or not.

searched high and low for that button. Can’t find it. What GUI / environment do you use? I’m on Mainsail.

I have it on OctoKlipper:

grafik