-
Notifications
You must be signed in to change notification settings - Fork 10
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
Error processing "attach" #18
Comments
@dragonk233 Sorry to hear you are having problems with the extension. A couple questions for you:
Please let me know what you find. Thanks, Courtney |
Thank you for your prompt reply.
-this command did not worked so i try the other issue command. E:\officeAddIn1\UDF3>npx office-addin-dev-settings webview edge E:\officeAddIn1\UDF3> |
Sorry I sent the wrong command, but you did end running the correct one after you added the manifest file path. Are you about to browse to https://localhost:3000/taskpane.html?_host_Info=Excel$Win32$16.01$en-US$$$$0? I just want to be sure there is not an issue with your dev-server |
i can visit https://localhost:3000/taskpane.html?_host_Info=Excel$Win32$16.01$en-US$$$$0? correctly. so i create a new project(Excel custom function) to provide some messages.
? Choose a project type: Excel Custom Functions Add-in project
I'm all done. Running npm install for you to install the required dependencies. If this fails, try running the command yourself.
Thank you for using core-js ( https://github.com/zloirock/core-js ) for polyfilling JavaScript standard library! The project needs your help! Please consider supporting of core-js on Open Collective or Patreon:
Also, the author of core-js ( https://github.com/zloirock ) is looking for a good job -)
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules\webpack-dev-server\node_modules\fsevents): added 989 packages from 565 contributors and audited 998 packages in 68.999s 40 packages are looking for funding found 26 vulnerabilities (22 low, 4 high)
|
Did you open the add-in taskpane before trying to attach the debugger? This is required, although it might not be spelled out clearly in the instructions. -Courtney |
yes,i did it. |
same problem with dragonk233 now, i'm change config to
and debug is starting. But i can't catch any of my breakpoints in taskpane.ts. p.s. is .ts files also supported or only .js? |
Can you please try specifying a different port than 9222 in the launch.json config just in case that port might already be in use? |
@TCourtneyOwen We are also experiencing this issue as well-- this is what we have tried so far: https://stackoverflow.com/questions/64705772/econnrefused-127-0-0-19222-when-trying-to-run-microsoft-office-add-in-debugger I've tried some of the suggestions shown here in addition to the steps mentioned in the Stack Overflow question above, but no luck. In our case, we are trying to attach to an Outlook Web Add-In on Windows 10 version 1903. This is the error that we get: Any other ideas or suggestions to try? |
@bradTeem just to clarify, are you running VS Code as admin? This is required. Can you also try the following when you open your taskpane add-in:
[ { Please let me know what you find. Thanks, Courtney |
@bradTeem Another good way to ensure you are not running Edge Chromium is to check in your taskmanager. If you see a process called WWAHost.exe when your taskpane is open, then you are not running Edge Chromium and the debugger extension should work |
i'm use Microsoft Edge 86.0.622.68 based on Chromium.
And, when i'm starting addin: npm run start Web Addin is works, but i can't using VSCode debugger ( |
@sergeos If you are running Edge Chromium, the Office Add-in Debugger extension is not supported. However you can use the Debugger for Microsoft Edge extension, which does support Edge Chromium. To use the Debugger for Microsoft Edge extension, please do the following:
Please give this a try and let me know how it goes. Thanks, Courtney |
@TCourtneyOwen Thanks for your reply-- yes, VS Code is being run as Administrator. When I tried accessing After checking task manager, I do see WWAHost.exe is running the 'Details' tab: My understanding from this SO question is that the web add-in on my version of Windows is running Internet Explorer. Is the VS Code Debugger Extension only compatible with pre-Chromium Edge? Or should I expect it to work with Internet Explorer as well? -Brad |
I have same problem with error I have followed the instructions to the letter. I recreated a fresh yeoman project, with Taskpane, react, typescript and same problem again. |
@stevetfiligree Are you running VS Code as admin? Just want to be sure you are doing this required step Thanks, Courtney |
Yes - did did not resolve it. |
Ok I discovered my problem.
It was interesting because my username is NOT "Steven" but "Steven Lastname" I had been playing around with npm config to replace the space to a tilde, but it is what I think has led to this problem. Having a space in name just seems to create all kinds of problems on commandline with npm. SolutionCreate a new user account with no spaces in it. Obviously this is a pain having to reset a new user profile - but it works and it will resolve a lot of npm headaches going forward.
Now looking at npmrc data
Now installing yo and generator will work properly
Now the debug will work as advised by instruction. Disclaimer:
|
@stevetfiligree Glad to hear things are working for you and perhaps you found a bug that the debugger extension is not working when the project has spaces in it. I will check that out after the holidays. I am officially on vacation now until the new year, so I won't be able to follow up until then. The see the console logging, please add this to the debug config in launch.json: "trace": "verbose" Thanks, Courtney |
@TCourtneyOwen
There is no generated console.log launch.json
App.tsx
Also throw new Error('this is an error') does nothing either. |
Thank you for your reply! I'll look into the launch configs and the App.tx to see how it replicates on our end. |
As you all ran into this issue I did some research in my weekly Live Stream and was 'lucky' to run into the same issue where I first was able to run it without issues. I got it solved in the end and posted my solution on Stack Overflow here: Let me know if this works for you as well |
OK, I'm seeing similar issues to the above.
[{"description":"WWAHost.exe","devtoolsFrontendUrl":"chrome-devtools://devtools/bundled/inspector.html?ws=localhost:9222/devtools/page/16A7F203-719E-7F73-C024-217EA72837","id":"16A7F203-719E-7F73-C024-217EA72837","title":"GeneratedProject","type":"page","url":"https://localhost:3000/taskpane.html?_host_Info=Word$Win32$16.01$en-US$$$$0","webSocketDebuggerUrl":"ws://localhost:9222/devtools/page/16A7F203-719E-7F73-C024-217EA72837"}]
I just enabled Trace as per above, and I get:
Looks like it should be working, but I'm running out of ideas of things to try. It just keeps spinning and never actually finishes attaching. After a minute it did dump:
...but still isn't attaching breakpoints. Using the {
"name": "Word Desktop (Edge Legacy)",
"type": "office-addin",
"request": "attach",
"url": "https://localhost:3000/taskpane.html?_host_Info=Word$Win32$16.01$en-US$$$$0",
"port": 9222,
"timeout": 600000,
"trace": "verbose",
"webRoot": "${workspaceRoot}",
"preLaunchTask": "Debug: Word Desktop",
"postDebugTask": "Stop Debug"
} Thoughts? |
AND never mind. A complete reboot later, it actually works. Thoughts on what exactly might have been "stuck"? Would be nice to not have to reboot my debug system several times per day if I could just kill the right process(es). Now I at least have a workaround. |
@TimMensch I too have run into similar problems and a reboot fixed it. Obviously not ideal. I would suggest killing all the Node processes and also the NetworkProxy.exe process if it is running. Sometimes this doesn't get terminated successfully. -Courtney |
How to attack a debugger for Outlook Addin ? |
notworking.mp4 |
Any new solutions to the problem
currently using visual studio 2022 on windows 10 |
This is a plugin for "Visual Studio Code" not "Visual Studio". If you are using VS Code then get the update for the plugin and see if it works for you. |
i was looking for a workaround from same issue in VS2022 |
VS projects use a different setup (not webpack) and shouldn't be using this extension. |
i have used edge(edgehtml)and change to webview
but still get the error
[vscode-debugger-extension-for-office-addins] Error processing "attach":connect ECONNREFUSED 127.0.0.1:9222
look forward to your kind reply
The text was updated successfully, but these errors were encountered: