[Debugger] minor code cleanup thanks to code analysis