How to debug Azure Emulator in Visual Studio 2013 - azure

I follow instruction on https://msdn.microsoft.com/en-us/library/azure/ff683670.aspx to debug a project in Azure Emulator in Visual Studio 2013. But after clicking "Show Compute Emulator UI", I can not find "Debug" On the Azure compute emulator (express) menu bar. What is the problem? Thanks for help.

You need to make sure that you have the correct project set as the Startup Project.
For example:
The Azure project here includes a Worker Role that is implemented in the Azure.Processor project.
With the Azure project as the startup project, hitting F5 will build the package, deploy it to the emulator, start it up and attach the debugger.

I don't think you need to click "Debug" in emulator UI. I think the document may be wrong. Just clicked "F5" to launch your application from VS2013 if it's built in debug. Once the emulator was started and your application was running, you can begin to debug by adding breakpoint.

Related

Unable to connect to the Microsoft Visual Studio Remote Debugger. Operation not supported. Unknown error: 0x80004005

I have deployed the following API as is to an Azure App Service from Visual Studio.
I have made sure that I have Remote Debugging and Visual Studio version 2022 selected in General settings in the App Service Configuration.
When I try and attach process from Visual Studio to my App Service I get thefollowing error:
In VS 2022, We have an easy and direct way to attach debugger.
After publishing your WebApp, In Hosting settings we will find an option to Attach Debugger.
Once debugger is attached, Remote debugging is enabled in Portal => Configuration Settings automatically.
Place a break point in any of the form which you want to debug.
Visual Studio finds the process, all the symbols will be loaded, and debugger is attached.

HoloLens Deployment

I have build an application in unity and I am trying to test out my project on to holoLens. When I hit the run button I get an exit code 1 error.
I have already upgraded Visual Studio, debug deploy is enabled.
Do you have some more information about the application you're trying to build and what settings you have in Visual Studio? From the screenshot it appears you are targeting x64 - to deploy to HoloLens you must change the Solution Platform to 'x86' in Visual Studio.

Azure Compute Emulator doesn't start when Debugging in Visual Studio 2013, stays shutdown

This happened to me several times in a row today. I pressed F5 to Debug my Windows Azure project in Visual Studio 2013 with the emulators, and the project would build, but no browser launched. There was no build error either, it would just complete the build and look like it was ready to launch a browser, but then just stop.
Finally I saw a message in the bottom left status bar of Visual Studio that said "Compute emulator shutdown". Then I moused over the Azure icon in my taskbar, and it said "Storage Emulator is started", but "Compute Emulator is shutdown".
I was helped by this post that mentioned where the emulator log files were. The key log file I needed was
C:\Users[User]\AppData\Local\dftmp\EmulatorRuntimeLogs\ErrorRuntime.log
That log file had an error in it about failing to write a file. This reminded me that I had forgotten to start Visual Studio as Administrator. Its a simple step for any Azure project but something that I forget to do sometimes since the majority of projects that I work on in Visual Studio are not Azure projects. And I didn't see this specific failure case mentioned in Stack Overflow, so thought I would post it.
I closed Visual Studio, right-clicked on the Visual Studio 2013 launch icon, chose "Run as Administrator", and then browser launched fine when Debugging

Visual Studio publishing to app store with Xamarin

I can't find any documentation on how to publish your app to the app store from Visual Studio? Is this a case of having to use Xamarin Studio once you are ready to submit your app?
It seems a bit odd that xamarin gives you the opportunity to use Visual Studio but then has absolutely no instructions on how to create a bundle to submit your app to the app store..
Any tips on how to do this with Visual Studio would be great.
As far as I know, there's no way of submitting to AppStore (or even TestFlight) from VS.
I believe that you can only submit builds to the App Store using Xcode or Application Loader. Both Mac programs.
Personally I make a release build in Visual Studio, and then click the 'Show IPA File In Build server' button.
If the buttons greyed out, right-click your iOS solution, select properties. Then go to 'iOS IPA Options' and check 'Build ad-hoc/enterprise package (IPA)'
Then I go to my Mac and start up Application Loader and drag the IPA file there.

there was an error attaching the debugger to the role instance

I am getting an Exception when I am trying debug my application on Emulator (Web Role).
you can see exception by clicking following link
Configuration which I am using Windows 7 pro, VS 2012 Pro, Azure SDK 1.8
Hope it might help others.
I Also had the similar problem and I restarted PC and **Run Visual Studio as Administrator**.
And let Visual Studio start the emulator with same privilege resolved the issue.
I was using Visual 2013 and Web API application under IIS Express.
Do you have IIS added? Most likely it's already installed but you've to enable it via Add Windows Compoenents on Control Panel...
I had this same issue all of a sudden, luckly I remember changing the ServiceDefinition.csdef file. I rolled this back to an earlier version and the debugger ran again correctly. The only thing I changed in the 'broken' version was instance size from small to medium.
Go to visual studio installer(search it from window's start)
and update the visual studio.
After updating, hit modify
button, after that on right side you will find a box named
debug (or something like that), select that box
Then hit install.
Restart your visual studio and debugger will start working.
In my case it worked perfectly.

Resources