Skip to content
This repository was archived by the owner on Oct 4, 2023. It is now read-only.

Commit eaed737

Browse files
committed
Updates docs/en/debugging-production.md
Auto commit by GitBook Editor
1 parent 15442d0 commit eaed737

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docs/en/debugging-production.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
### Main Process
44

5-
When running your application in development you may have noticed a message from the `main` process mentioning a remote debugger. Ever since the release of `electron@^1.7.2`, remote debugging over the Inspect API was introduced and can be easily accessed by opening the provided link with Google Chrome or through another debugger that can remotely attach to the process using the default port of 5858, such as Visual Studio Code.
5+
When running your application in development you may have noticed a message from the `main` process mentioning a remote debugger. Ever since the release of `electron@^1.7.2`, remote debugging over the Inspect API was introduced and can be easily accessed by opening the provided link with Google Chrome or through another debugger that can remotely attach to the process using the default port of 5858, such as Visual Studio Code.
66

77
```bash
88
┏ Electron -------------------
@@ -11,7 +11,7 @@ When running your application in development you may have noticed a message from
1111
Warning: This is an experimental feature and could change at any time.
1212
To start debugging, open the following URL in Chrome:
1313
chrome-devtools://devtools/bundled/inspector.html?experiments=true&v8only=true&ws=127.0.0.1:5858/22271e96-df65-4bab-9207-da8c71117641
14-
14+
1515
┗ ----------------------------
1616
```
1717

@@ -31,7 +31,7 @@ mainWindow.webContents.openDevTools()
3131

3232
##### `main` Process
3333

34-
Similar to what is mentioned above, you can also attach an external debugger to the `main `process to remotely debug your application. In order to activate the debugger in production you can add the follow snippet after the `app` import inside `src/main/index.js`. Then you can navigate Google Chrome to `chrome://inspect` and get connected.
34+
Similar to what is mentioned above, you can also attach an external debugger to the `main` process to remotely debug your application. In order to activate the debugger in production you can add the follow snippet after the `app` import inside `src/main/index.js`. Then you can navigate Google Chrome to `chrome://inspect` and get connected.
3535

3636
```js
3737
app.commandLine.appendSwitch('inspect', '5858')

0 commit comments

Comments
 (0)