Overwrite loop_debugger_branch without broken log messages in discovery