Make a Python function available in Calc, run it against the open spreadsheet, and troubleshoot missing macros or imports ...
PyFlightProfiler: A diagnostic toolbox for Python applications that provides non-intrusive, low-overhead capabilities for online analysis. - alibaba/PyFlightProfiler ...