![]() ![]() ![]() This method, as you might as expect, opens the Developer Tools in the BrowserWindow it’s called on. The webContents property on BrowserWindow instances has a method called openDevTools(). In addition, you can also trigger the Developer Tools programmatically. At any point, you can press Cmd + Opt + I on macOS or Ctrl + Shift + I on Windows or Linux. You can create your own custom menu and eliminate this feature in the event that you’d prefer not to expose it your users.įigure 2: Figure 2 The tools can be toggled on and off in the default menu provided by Electron.ĭeveloper Tools can be accessed in two other ways. Electron’s default application menu provides a command for opening the Chrome Developer Tools in our application. Figure 1: The Chrome Developer Tools are available to us in the renderer process like they’d be in a browser-based application.ĭebugging the renderer process is relatively straight-forward. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |