Skip to content

Commit da00723

Browse files
committed
Update VS Code launch configs
Excel Desktop: this launch config will launch Excel but the task pane cannot be debugged using VS Code. Instead, use Edge DevTools or Visual Studio to attach to the task pane and debug. Office Online (Edge): this launch config will allow you to debug the task pane code but requires manual configuration first. Replace the url with the share link to an Office Online document. After debugging is started, you will need to upload the manifest to insert the add-in into the document. You can then set breakpoints in the source code, and should hit them when the code is executed.
1 parent bfa882f commit da00723

File tree

2 files changed

+28
-8
lines changed

2 files changed

+28
-8
lines changed

.vscode/launch.json

Lines changed: 17 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,23 @@
77
{
88
"name": "Excel Desktop",
99
"type": "node",
10-
"request": "attach",
11-
"port": 9229,
12-
"protocol": "inspector",
13-
"timeout": 600000,
14-
"trace": true,
15-
"preLaunchTask": "Debug: Desktop",
16-
"postDebugTask": "Stop Debug",
17-
"outFiles": [ "${workspaceFolder}/dist/**/*.js" ]
10+
"request": "launch",
11+
"runtimeExecutable": "npm",
12+
"runtimeArgs": [
13+
"run-script",
14+
"start-desktop"
15+
],
16+
},
17+
{
18+
"name": "Office Online (Edge)",
19+
"type": "edge",
20+
"request": "launch",
21+
// To debug your Add-in:
22+
// 1. Replace the url with the share link to an Office Online document.
23+
// 2. Sideload your Add-in. https://docs.microsoft.com/en-us/office/dev/add-ins/testing/sideload-office-add-ins-for-testing
24+
"url": "https://www.office.com",
25+
"webRoot": "${workspaceFolder}",
26+
"preLaunchTask": "Debug: Web"
1827
}
1928
]
2029
}

.vscode/tasks.json

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,17 @@
3939
},
4040
"problemMatcher": []
4141
},
42+
{
43+
"label": "Debug: Web",
44+
"type": "npm",
45+
"script": "start-web",
46+
"presentation": {
47+
"clear": true,
48+
"panel": "shared",
49+
"showReuseMessage": false
50+
},
51+
"problemMatcher": []
52+
},
4253
{
4354
"label": "Dev Server",
4455
"type": "npm",

0 commit comments

Comments
 (0)