Programming in C# — Question 93
You plan to debug an application remotely by using Microsoft Visual Studio 2013.
You set a breakpoint in the code.
When you compile the application, you get the following error message: "The breakpoint will not currently be hit. No symbols have been loaded for this document."
You need to ensure that you can debug the application remotely.
What should you do?
Answer options
- A. Modify the AssemblyInfo.cs file.
- B. Copy .exe files to the Symbols folder on the local computer.
- C. Copy .cs files to the remote server.
- D. Use .NET Remote Symbol Loading.
Correct answer: A
Explanation
The correct answer is A because modifying the AssemblyInfo.cs file can ensure that the necessary debugging symbols are included in the compiled code, allowing breakpoints to be hit. Options B and C do not address the issue of symbol loading, and D, while related to symbols, does not resolve the specific problem of ensuring symbols are included in the build on the remote machine.