Debug mode now uses session. Renamed from getDebugInModule to getDebugStatus.