Просмотр исходного кода

devex: Enable Electron MCP servers with DevTools debug port (#25795)

Luke Parker 4 месяцев назад
Родитель
Сommit
2740d398fa
1 измененных файлов с 1 добавлено и 0 удалено
  1. 1 0
      packages/desktop-electron/src/main/index.ts

+ 1 - 0
packages/desktop-electron/src/main/index.ts

@@ -74,6 +74,7 @@ setupApp()
 function setupApp() {
 function setupApp() {
   ensureLoopbackNoProxy()
   ensureLoopbackNoProxy()
   app.commandLine.appendSwitch("proxy-bypass-list", "<-loopback>")
   app.commandLine.appendSwitch("proxy-bypass-list", "<-loopback>")
+  if (!app.isPackaged) app.commandLine.appendSwitch("remote-debugging-port", "9222")
 
 
   if (!app.requestSingleInstanceLock()) {
   if (!app.requestSingleInstanceLock()) {
     app.quit()
     app.quit()