Use DebuggerLib.getThreadDebugger where appropriate + comments (related to issue 7097)