Developing ASP.NET MVC Web Applications — Question 136
You develop an application. You deploy the application as a worker role to a staging environment in Microsoft Azure.
You receive feedback from testers that the application is throwing errors.
You need to ensure that you can remotely debug the application by using Server Explorer in Microsoft Visual Studio.
What should you do?
Answer options
- A. Explicitly attach the debugger to the WaWorkerHost.exe process.
- B. Republish the application using the Debug build configuration.
- C. In Server Explorer, right-click the application instance node and select Enable Debugging.
- D. Republish the application and enable IntelliTrace.
Correct answer: D
Explanation
The correct answer is D because enabling IntelliTrace allows for detailed monitoring and debugging of the application even after deployment. Option A is incorrect as simply attaching the debugger does not facilitate remote debugging in this context. Option B does not address the need for remote debugging specifically, and Option C does not provide the necessary diagnostics that IntelliTrace offers.