Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Visual Studio 2010 doesn't display debug info for local variables

Visual Studio 2010 doesn't display debug info for local variables. I have no problem seeing my class variables though. Is there some setting that I'm missing?

This is a "debug" build.

I tried going to Project Properties -> C++ -> Optimizations and disable all optimizations.

like image 850
Himadri Choudhury Avatar asked Feb 24 '23 17:02

Himadri Choudhury


2 Answers

This can help. http://support.microsoft.com/kb/2452649

This is the main entry http://social.msdn.microsoft.com/Forums/en/vsdebug/thread/6133b9d0-81c6-4e30-bfe5-5b3d6e104300

like image 136
cgon Avatar answered Apr 28 '23 19:04

cgon


check to make sure you're project is setup to export debug symbols. These should be .pdb files. They contain debug information for your code. I believe the setting is under project->Linker->generate debug info.

like image 28
helloworld922 Avatar answered Apr 28 '23 20:04

helloworld922