When you use an IDE debugger with this code, it can’t get a Session ID from the IDE itself, so you get this message:
" session_id = get_report_ctx().session_id
AttributeError: ‘NoneType’ object has no attribute ‘session_id’
I understand why we get this error, but what is the solution? How do we debug our code using the debugger when our local IDE can’t generate a sesion_id?