Skip to content

Commit 803d736

Browse files
committed
docs(testingAndDebugging): add link to VSCode recipe
1 parent 193a4f8 commit 803d736

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

docs/guide/testingAndDebugging.md

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,16 +6,20 @@ sidebarDepth: 2
66

77
## Debugging
88

9+
### Visual Studio Code
10+
11+
See the [VSCode testing recipe](./recipes.md#debugging-with-vscode) for information on debugging the main and renderer process in [Visual Studio Code](https://code.visualstudio.com/).
12+
913
### Renderer Process (Main App)
1014

11-
You can debug the renderer process using [Vue Devtools](https://github.com/vuejs/vue-devtools). Vue Devtools are automatically installed for you (powered by [electron-devtools-installer](https://github.com/MarshallOfSound/electron-devtools-installer)).
15+
You can debug the renderer process using [Vue Devtools](https://github.com/vuejs/vue-devtools). Vue Devtools are automatically installed for you (powered by [electron-devtools-installer](https://github.com/MarshallOfSound/electron-devtools-installer)). You can also use the [Chrome debugger](https://developers.google.com/web/tools/chrome-devtools/javascript/).
1216

1317
### Main Process (Background File)
1418

15-
First, read [Electron's instructions](https://electronjs.org/docs/tutorial/debugging-main-process#command-line-switches) for debugging the main process. Before launching Electron through your debugger, run `electron:serve` in debug mode with the `--debug` argument. This will prevent Electron from launching automatically and enable source map support. Make sure to set the background file `dist_electron/background.js`.
19+
First, read [Electron's instructions](https://electronjs.org/docs/tutorial/debugging-main-process) for debugging the main process. Before launching Electron through your debugger, run `electron:serve` in debug mode with the `--debug` argument. This will prevent Electron from launching automatically and enable source map support. Have Electron target your output directory (`dist_electron` by default) by passing it as an argument (ie `electron --inspect=5858 dist_electron`).
1620

1721
::: tip
18-
If you are testing with spectron, make sure to set `process.env.IS_TEST` to `true`. This will prevent dev tools from being loaded which results in errors.
22+
If you are testing with [Spectron](https://electronjs.org/spectron), make sure to set `process.env.IS_TEST` to `true`. This will prevent dev tools from being loaded which results in errors.
1923
:::
2024

2125
## Testing

0 commit comments

Comments
 (0)