Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pwa-msedge not working #1474

Closed
Tom-H2oThermo opened this issue Apr 27, 2023 · 2 comments
Closed

pwa-msedge not working #1474

Tom-H2oThermo opened this issue Apr 27, 2023 · 2 comments

Comments

@Tom-H2oThermo
Copy link

Environment (please complete the following information):

  • OS (e.g., Windows 10):MS Windows 11 Pro
  • Extension version (e.g., 1.2.3):v2.1.1

Describe the bug:

I have developed an Excel add in function in Node.JS. Appendix A of "Debug add-ins on Windows using Visual Studio Code and Microsoft Edge WebView2 (Chromium-based)", https://learn.microsoft.com/en-us/office/dev/add-ins/testing/debug-desktop-using-edge-chromium, has an example of a launch.json file. This example say to include in the configurations array "type": "pwa-msedge" but I'm getting an error message that says I should use "type": "msedge" instead. Is this correct? Am I missing an add-in for the pwa-msedge to work? Also, I'm getting an error with the "useWebView": true, line; it doesn't like the true statement. Any guidance would be appreciated.

Repro steps:

By viewing the launch.json I can see these error messages.

Expected behavior:

I would expect that the pws-msedge line should work as described in the Appendix A of the referenced document.

Additional context:

image

@captainbrosset
Copy link
Collaborator

@vidorteg it sounds like our documentation for the extension might not up to date. Can you help @TomMcAuliffe on this? And let me know if you think we need to update our docs?

@TomMcAuliffe just to double check: did you read the launch.json documentation we have here: https://learn.microsoft.com/en-us/microsoft-edge/visual-studio-code/microsoft-edge-devtools-extension/launch-json ?

@Tom-H2oThermo
Copy link
Author

Thank you for getting back to me. I managed to get this working this morning after trying many things. To be honest, I'm not sure what specifically resolved my issue. In addition to Miscrosoft Edge for tools, I have installed Microsoft Office Addin Debugger, even though this is deprecated. I installed the JavaScript Debugger (Nightly). This morning when I tried again, I got a notice asking if I wanted to install Live Preview, which I did. This is the debug launch.json option I'm running.
{
"name": "Excel Desktop (Edge Chromium)",
"type": "msedge",
"request": "attach",
"port": 9229,
"timeout": 600000,
"webRoot": "${workspaceRoot}",
"preLaunchTask": "Debug: Excel Desktop",
"postDebugTask": "Stop Debug"
},

Anyway, it now seems to be working for me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants