Merge pull request #4153 from sunaiwen/patch-1

Update debugging-main-process.md
This commit is contained in:
Kevin Sawicki 2016-01-19 10:12:26 -08:00
commit 01e1d0dfef

View file

@ -60,13 +60,13 @@ or, to pause your script on the first line:
$ electron --debug-brk=5858 your/app
```
### 5. Start the [node-inspector][node-inspector] server using electron
### 6. Start the [node-inspector][node-inspector] server using electron
```bash
$ ELECTRON_RUN_AS_NODE=true path/to/electron.exe node_modules/node-inspector/bin/inspector.js
```
### 6. Load the debugger UI
### 7. Load the debugger UI
Open http://127.0.0.1:8080/debug?ws=127.0.0.1:8080&port=5858 in the Chrome browser. You may have to click pause if starting with debug-brk to see the entry line.