aboutsummaryrefslogtreecommitdiff
path: root/.vscode/launch.json
diff options
context:
space:
mode:
authorVendicated <vendicated@riseup.net>2022-11-09 19:26:39 +0100
committerVendicated <vendicated@riseup.net>2022-11-09 19:26:46 +0100
commit3c8084ec36b82fdf7ea89aaf6558197d9c070ca9 (patch)
tree35aef25fe43161b00c9b9d47dbc1fda17df4771f /.vscode/launch.json
parent3b65384b9438f38f612b92ed1276eb6bb0899f50 (diff)
downloadVencord-3c8084ec36b82fdf7ea89aaf6558197d9c070ca9.tar.gz
Vencord-3c8084ec36b82fdf7ea89aaf6558197d9c070ca9.tar.bz2
Vencord-3c8084ec36b82fdf7ea89aaf6558197d9c070ca9.zip
Add VSCode debug config
Diffstat (limited to '.vscode/launch.json')
-rw-r--r--.vscode/launch.json37
1 files changed, 37 insertions, 0 deletions
diff --git a/.vscode/launch.json b/.vscode/launch.json
new file mode 100644
index 0000000..dce9770
--- /dev/null
+++ b/.vscode/launch.json
@@ -0,0 +1,37 @@
+{
+ // this allows you to debug Vencord from VSCode.
+ // How to use:
+ // You need to run Discord via the command line to pass some flags to it.
+ // If you want to debug the main (node.js) process (preload.ts, ipcMain/*, patcher.ts),
+ // add the --inspect flag
+ // To debug the renderer (99% of Vencord), add the --remote-debugging-port=9223 flag
+ //
+ // Now launch the desired configuration in VSCode and start Discord with the flags.
+ // For example, to debug both process, run Electron: All then launch Discord with
+ // discord --remote-debugging-port=9223 --inspect
+
+ "version": "0.2.0",
+ "configurations": [
+ {
+ "name": "Electron: Main",
+ "type": "node",
+ "request": "attach",
+ "port": 9229,
+ "timeout": 30000
+ },
+ {
+ "name": "Electron: Renderer",
+ "type": "chrome",
+ "request": "attach",
+ "port": 9223,
+ "timeout": 30000,
+ "webRoot": "${workspaceFolder}/src"
+ }
+ ],
+ "compounds": [
+ {
+ "name": "Electron: All",
+ "configurations": ["Electron: Main", "Electron: Renderer"]
+ }
+ ]
+}