I attach VS 2010 to service process; after that I put breakpoint in several methods but they never seem to be hit. Any idea or tips?
Note: The services process installed is a release build. Do I have to have a debug build installed for this?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You need to have a debug build for this.
In release mode, the debug info is discarded and code is optimized, so there is no way to link to original source code.
In debug mode, debugging and project state information is retained so the debugger canlink to the source code. It also emits
DebuggableAttributethat tells JIT compiler that the assembly has debug info.Helpful link: http://msdn.microsoft.com/en-us/library/ms241903.aspx