optimization in c#?

Hello,
I am running windows 7, VS 2013 and wcf server application. The server application which gives the following message when I try to step into the code (F11) in Debug.

Cannot obtain value of local or arguement 'msgData'  as it is not available at this instruction pointer, possibly because it has been optimized away

However when I look at the Optimization flag under "Build" is not switched on. On a different Windows 7 laptop with VS 2013 it works ok. Any idea why it is failing with this message

regards
Pat
LVL 1
pclarke7Asked:
Who is Participating?
 
Miguel OzSoftware EngineerCommented:
Possible solutions: (assume that your app has debug as active configuration build)
1. Clean-up and rebuild the solution.
2. Verify & set Debug Info mode to “full” under “Advanced Build Settings”:
Right click the Project
Select option “Properties”
Go to Build -> Advanced -> Debug Info ... set to "full".
0
 
it_saigeDeveloperCommented:
Is this a Debug build or Release build?

-saige-
0
 
pclarke7Author Commented:
Hi Saige,
it is a debug build

Pat
0
 
pclarke7Author Commented:
Hi Miguel,
thanks for that. Clean up and re-build seems to have done the trick and I am now able to debug.

regards
Pat
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.