ide;debugger; improved AdjustDebugMenus code.