debug for session