Isolate debugger related code