SOLVED
With little knowledge of Marlin and Roxy's help I found a way to get debug messages:
Add "print" statements something like this:
SERIAL_ECHOPGM("Text: ");
SERIAL_ECHO(VariableName);
SERIAL_EOL();
Not really sure where best to put these - depends what you are trying to see but I inserted these in the gcode M115 (show Marlin version etc.) instruction interpreter.
This is in Marlin_main.cpp file
in the section beginning "inline void gcode_M115() {"
I inserted immediately before the final closing "}" of this section.
Connect PC to printer board via USB cable.
Use arduino IDE to compile / upload
Start serial monitor (under tools in arduino IDE) I had to change options at bottom of window to "both NL and CR" and set baud rate to 250000.
Send "M115" whenever you want to see the debug echos (after the info. M115 normally generates).
Hope this helps someone!
With little knowledge of Marlin and Roxy's help I found a way to get debug messages:
Add "print" statements something like this:
SERIAL_ECHOPGM("Text: ");
SERIAL_ECHO(VariableName);
SERIAL_EOL();
Not really sure where best to put these - depends what you are trying to see but I inserted these in the gcode M115 (show Marlin version etc.) instruction interpreter.
This is in Marlin_main.cpp file
in the section beginning "inline void gcode_M115() {"
I inserted immediately before the final closing "}" of this section.
Connect PC to printer board via USB cable.
Use arduino IDE to compile / upload
Start serial monitor (under tools in arduino IDE) I had to change options at bottom of window to "both NL and CR" and set baud rate to 250000.
Send "M115" whenever you want to see the debug echos (after the info. M115 normally generates).
Hope this helps someone!