@@ -461,26 +461,28 @@ void GlobalDebuggerUI::SetupMenu(UIContext* context)
461461 }, notConnected));
462462 debuggerMenu->addAction (" Connect to Remote Process" , " Launch" );
463463
464- UIAction::registerAction (" Activate Debug Adapter" );
465- context->globalActions ()->bindAction (" Activate Debug Adapter" , UIAction ([=](const UIActionContext& ctxt) {
466- if (!ctxt.binaryView )
467- return ;
468- auto controller = DebuggerController::GetController (ctxt.binaryView );
469- if (!controller)
470- return ;
471-
472- if (controller->ActivateDebugAdapter ())
473- {
474- QMessageBox::information (context->mainWindow (), " Successfully activated" ,
475- " Successfully activated the debug adapter. Now you can run backend commands directly." );
476- }
477- else
478- {
479- QMessageBox::information (context->mainWindow (), " Failed to activate" ,
480- " Cannot activate to the debug adapter." );
481- }
482- }));
483- debuggerMenu->addAction (" Activate Debug Adapter" , " Launch" );
464+ // There is no longer a need to manually create the debug adapter. It will be automatically created if it is accessed
465+ // but not created yet.
466+ // UIAction::registerAction("Activate Debug Adapter");
467+ // context->globalActions()->bindAction("Activate Debug Adapter", UIAction([=](const UIActionContext& ctxt) {
468+ // if (!ctxt.binaryView)
469+ // return;
470+ // auto controller = DebuggerController::GetController(ctxt.binaryView);
471+ // if (!controller)
472+ // return;
473+ //
474+ // if (controller->ActivateDebugAdapter())
475+ // {
476+ // QMessageBox::information(context->mainWindow(), "Successfully activated",
477+ // "Successfully activated the debug adapter. Now you can run backend commands directly.");
478+ // }
479+ // else
480+ // {
481+ // QMessageBox::information(context->mainWindow(), "Failed to activate",
482+ // "Cannot activate to the debug adapter.");
483+ // }
484+ // }));
485+ // debuggerMenu->addAction("Activate Debug Adapter", "Launch");
484486
485487#ifdef WIN32
486488 UIAction::registerAction (" Reinstall DbgEng Redistributable" );
0 commit comments