For some reason a process fails to execute but only on mainnet and although I’ve managed to peer through the black box somewhat via assert(), whose error messages on the browser tell you the line where things went wrong, the lack of print statements on mainnet makes it a bit of a dark room to debug, especially with medium-large codebases or processes that call several functions.
How have you dealt with it?