You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
#### 2. Add a file `.vscode/launch.json` with the following configuration:
@@ -44,23 +45,27 @@ $ code electron-quick-start
44
45
45
46
#### 3. Debugging
46
47
47
-
Set some breakpoints in `main.js`, and start debugging in the[Debug View](https://code.visualstudio.com/docs/editor/debugging). You should be able to hit the breakpoints.
48
-
49
-
Here is a pre-configured project that you can download and directly debug in VSCode: https://github.com/octref/vscode-electron-debug/tree/master/electron-quick-start
48
+
Set some breakpoints in `main.js`, and start debugging in the
49
+
[Debug View](https://code.visualstudio.com/docs/editor/debugging). You should
50
+
be able to hit the breakpoints.
50
51
51
52
## Debugging the Electron codebase
52
53
53
-
If you want to build Electron from source and modify the native Electron codebase, this section will help you in testing your modifications.
54
+
If you want to build Electron from source and modify the native Electron codebase,
55
+
this section will help you in testing your modifications.
54
56
55
-
For those unsure where to acquire this code or how to build it, [Electron's Build Tools](https://github.com/electron/build-tools) automates and explains most of this process. If you wish to manually set up the environment, you can instead use these [build instructions](../development/build-instructions-gn.md).
57
+
For those unsure where to acquire this code or how to build it,
58
+
[Electron's Build Tools](https://github.com/electron/build-tools) automates and
59
+
explains most of this process. If you wish to manually set up the environment,
60
+
you can instead use these [build instructions](../development/build-instructions-gn.md).
*`${workspaceFolder}` is the full path to Chromium's `src` directory.
98
105
*`your-executable-location` will be one of the following depending on a few items:
99
-
*`Testing`: If you are using the default settings of [Electron's Build-Tools](https://github.com/electron/build-tools) or the default instructions when [building from source](../development/build-instructions-gn.md#building).
106
+
*`Testing`: If you are using the default settings of
107
+
[Electron's Build-Tools](https://github.com/electron/build-tools) or the default
108
+
instructions when [building from source](../development/build-instructions-gn.md#building).
100
109
*`Release`: If you built a Release build rather than a Testing build.
101
-
*`your-directory-name`: If you modified this during your build process from the default, this will be whatever you specified.
102
-
* The `args` array string `"your-electron-project-path"` should be the absolute path to either the directory or `main.js` file of the Electron project you are using for testing. In this example, it should be your path to `electron-quick-start`.
110
+
*`your-directory-name`: If you modified this during your build process from
111
+
the default, this will be whatever you specified.
112
+
* The `args` array string `"your-electron-project-path"` should be the absolute
113
+
path to either the directory or `main.js` file of the Electron project you are
114
+
using for testing. In this example, it should be your path to `my-app`.
103
115
104
116
#### 3. Debugging
105
117
106
-
Set some breakpoints in the .cc files of your choosing in the native Electron C++ code, and start debugging in the [Debug View](https://code.visualstudio.com/docs/editor/debugging).
118
+
Set some breakpoints in the .cc files of your choosing in the native Electron C++
119
+
code, and start debugging in the [Debug View](https://code.visualstudio.com/docs/editor/debugging).
Copy file name to clipboardExpand all lines: docs/latest/tutorial/tutorial-1-prerequisites.md
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
---
2
2
title: 'Prerequisites'
3
-
description: 'This guide will step you through the process of creating a barebones Hello World app in Electron, similar to electron/electron-quick-start.'
3
+
description: 'This guide will step you through the process of creating a barebones Hello World app in Electron.'
Copy file name to clipboardExpand all lines: docs/latest/tutorial/tutorial-2-first-app.md
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
---
2
2
title: 'Building your First App'
3
-
description: 'This guide will step you through the process of creating a barebones Hello World app in Electron, similar to electron/electron-quick-start.'
3
+
description: 'This guide will step you through the process of creating a barebones Hello World app in Electron.'
Copy file name to clipboardExpand all lines: docs/latest/tutorial/tutorial-3-preload.md
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
---
2
2
title: 'Using Preload Scripts'
3
-
description: 'This guide will step you through the process of creating a barebones Hello World app in Electron, similar to electron/electron-quick-start.'
3
+
description: 'This guide will step you through the process of creating a barebones Hello World app in Electron.'
0 commit comments