-
Notifications
You must be signed in to change notification settings - Fork 93
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
EdgeWebview crashing after 5 seconds #1852
Comments
Update!!! |
Thanks for this feedback @G00golplex ! I'll tag someone on our team to investigate this further. |
Thanks for your patience, we will provide an update as soon as we are done investigating. |
Hey @G00golplex , @sohailzafar please check UseLiveReload - when True it was causing issues on our end (you need to check all the items under 'Developer' key... |
@4tti Hey, i try to modify these REGEDIT but it doesnt seem to resolve the issue for me, have you other tricks that can maybe work ? x) |
@4tti: the UseWebDebugger Reg_Dword is false for all of them. Only UseDirectDebugger is 1. |
@Delsus78 unfortunately I don't |
Can I get some clarification . . .
|
Hey @millerds, I was also getting the same error that @G00golplex has,
But a few days back I was unable to get that Accord Project option in the dev tools for debugging, I had recorded my screen while the debugger was crashing have a look Can anyone here help me how I can debug my Add-in, if there is any new documentation or new methods to do so can you please point out some links to them? Thanks in Advance :) |
Hi,
please see my clarification below.
On Wed, May 12, 2021 at 12:55 AM Darren Miller ***@***.***> wrote:
Can I get some clarification . . .
- "Microsoft Edge DevTools preview" works with the legacy edge and not
the chromium. You said you got an update, but I'm not sure what you are
referring too. Are you talking about the dev tools that are part of the
Edge chromium install?
- First I had the DevTools Preview with legacy Edge (non Chromium) but
there were a lot of problems with that solution so I tried to search for an
alternative and that was Edge Chromium Beta. I installed it before Windows
20H2, where it is baked in, was available. Because the DevTools Preview had
a lot of hiccups and I wanted to change as fast as possible to the new Edge
Chromium DevTools. But after I installed windows 20H2 I I uninstalled Edge
Chromium Beta and only the full version of Edge(Version 90.0.818.56
(Official build) (64-bit)) is installed on my machine.I hope that is more
clear?
- If you are what are you doing to attach to the add-in (I've only
been able to use that in association with a page in the browser and not as
a stand alone tool) ? To attach the addin I use the "attach debugger
button" :
![attach debugger](https://user-images.githubusercontent.com/13833985/118499615-6588be00-b727-11eb-964a-fcad0a5081ac.png)
-
- What is the specific plugin in VS Code, and it's version, you are
using?
[image: image.png]
version 1.0.15
[image: image.png]
I also installed Microsoft Office Add-in debugger
- I can create a new project using yo office and use the vs code to
debug (Excel Desktop (edge chromium) configuration) just fine. Are you
trying not to use VS code for debugging?
No absolutely not! I would love to have the full step by step debugging I
am used to have with Visual Studio. But here there is also something
strange. I can start a debug session with VS code
[image: image.png]
and the system says that debugging has started but it kills the node sever
and then I get this
[image: image.png]
- Can you give us some specific steps of what you are trying to do?
First I run NPM start:
then attach debugger, I will then see this screen for 5 seconds:
![DevTools](https://user-images.githubusercontent.com/13833985/118500333-fe1f3e00-b727-11eb-8cc6-881a3ace746c.png)
and then it disappears and it takes up to one minute before I can click the
DevTools again.
kind regards,
…
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#1852 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ADJROAI6JPVBHGKJEABNGQLTNGYWHANCNFSM44JJFAFQ>
.
|
Thanks. I'm getting a better picture, but all the images seems to be missing. |
@millerds |
OK . . . looks like you're project was created with a version of the template that didn't include the debug configuration that are now part of it. You can add them by clicking the link that says create a launch.json file (looks like that is what you clicked) and picking anything from the list there (we'll be replacing it anyway). When the file opens, replace the item in the configurations array with this:
The dropdown from my image is populated by the items in the array in this config file. If you create a new project using yo office you'll find the json file there with all the options seen in my screenshot. |
@millerds Again thanks a lot 🙏. I think I might be able to continue the work now. |
Looks like there are other pieces that need to be added to your project (the config includes some pre and post task that it's trying to do). I would create a fresh vanilla project using "yo office" and then look at the stuff in the .vscode folder and maybe the package.json file (possibly some others I'm not sure of). See the differences between those filed and yours and then add what you need to improve your experience (the error suggests the .vscode/tasks.json file has some stuff you need). |
I am also not able to inspect the taskpane without the taskpane crashing and restarting. It works fine with macOS/Safari, but crashes on Windows 10/Edge Chromium. I've tried generating fresh projects with the yo generator and they have the same issue. The debugger works within VS Code, but it's an issue to not be able to inspect the DOM. |
While we are working on a fix for the devtools/webview2 crash you can use this workaround to use the devtools instead of VS Code:
You should see the devtools load in a new window with a simulation of the live taskpane running office. The simulation is connected to the live pane and click it will trigger the same action in the live taskpane. |
The Workaround works fine without a crash! |
@millerds, I believe I am seeing the same issue when trying to debug IE11 in visual studio. Is there a workaround for this environment as well? |
Never mind. I was able to debug using F12: https://docs.microsoft.com/en-us/office/dev/add-ins/testing/debug-add-ins-using-f12-developer-tools-on-windows-10 |
I am experiencing the same issue as G00golplex originally brought up, which Aniruddha-Shriwant captured perfectly in their video earlier. I'm experiencing this in outlook, and the workaround above shows the exact same behavior. When I launch edge chromium and navigate to |
This issue should be fixed with the July updates to Edge |
Until now I have alwayse used Microsoft Edge DevTools preview but finally the update of the Edge Chromium with webView 2 DevTools have been deployed. I wanted to run my office JS Excel addin (TypeScript React, FluentUI, with the Yeoman generator scaffolding) and attach the debugger. but the debugger opens up for 5 seconds and then closes and restarts the plugin. As a concenquence, after the reboot of the addin, the attach debugger is not possible for about a minute.
Expected Behavior
I would like to debug my code with the DevTools but it does not seem to work
Current Behavior
Crash of DevTools after 5 seconds.
I have tried the following:
Steps to Reproduce, or Live Example
Your Environment
Useful logs
The text was updated successfully, but these errors were encountered: