Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Local debugging azure emulator

Windows 7, VS2012-Update1, x64.

If i start e new MVC-project, and add the Azure project to it. I can't debug it locally in the azure emulator.

The error:

Operation taking longer than expected

A 64-bit debugging operation is taking longer than expected. This may be caused by incompatibilities with 3rd party networking softwar. See help for troubleshooting these issues.

When i Terminate that message (twice):

Windows Azure Tools for Microsoft Visual Studio

There was en error attaching the debugger t the role intances 'deployment18(18).mvctest.Azure.Website_IN_0' with prces Id:'8752'. Unable to attach. The Microsoft Visual Studio remote debugging monitor has been closed on the remote machine.

The first message, I already found that if you change your website target to x86 that this can solve the problem. (this solved a problem for debugging unit-tests) But if I change it to x86, the nex message pops up:

Windows Azure Tools for Microsoft Visual Studio

Cannot start debugging. The role was built for a platform incompatible with the windows azure compute emulator. On this system the compute emulator supports anyCPU and x64.

If i start without debugging (not x86), the windows emulator starts, and the website opens.

Is there a solution to solve this that we can debug x64 websites on the azure emulator?

Thanks.

Problem solved:

The issue was, that oour normal account didnt had admin privileges, and that we had to use an other admin user his credentials to run it in admin mode. If i logged on with that admin user and started everything, that user couldn't also load the azure emulator. Every co-developer had the same issue. But when the normal account had back the admin privileges, the emulator started normally. So i assume that there was something missing for those admin account (what i don't know)

like image 598
bruno Avatar asked Feb 15 '13 09:02

bruno


People also ask

How do I debug Azure function locally?

Start debugging by attaching to a w3wp.exe remote process At least one breakpoint is setup. Our DLL compile and publish on Azure should be on Debug. The DLL version published on Azure should match the local version.

How do I debug Azure function locally in Visual Studio code?

In Visual Studio Code, press F5 to launch the debugger and attach to the Azure Functions host. You could also use the Debug > Start Debugging menu command. Output from the Functions Core tools appears in the Terminal panel.


2 Answers

Ensure that the remote debugging service and the machine debug manager (for x64) are properly installed and running (services in Automatic, especially not disabled).

You can also try to download and reinstall the remote debugging tools following instructions here

Even if it is on the same machine, chances are that debugging for the emulator goes through the remote debugging path

like image 96
Lorenzo Dematté Avatar answered Oct 27 '22 00:10

Lorenzo Dematté


Been googleing this for a while now and it looks like the problem is connected to network drivers installed on windows. Do you have a VPN installed? Uninstall it and try again. Otherwise it could be some of the network card drivers. Same here, uninstall and try again. Some people have solved this by upgrading visual studio.

like image 43
Magnus Karlsson Avatar answered Oct 27 '22 00:10

Magnus Karlsson