views:

1162

answers:

5

I installed Visual Studio 2005 ( with SP1 ) and made the default settings as what is required for C++ .

Now i open a solution and run the exe . Under " Tools " menu item i go and Select " Attach the process " and i attach it to the exe i just ran . I put breakpoints several places in the code ( this breakpoints looks enabled ) and these are the places where the breakpoints should definitely be hit . But for some reason , my breakpoints are not hit .

PS : All pdb's are present in correct location .

Is there any setting i am missing .

+1  A: 

Are you in Debug mode? I've had this problem when I was trying to do it in Release mode. It doesn't complain, it just doesn't hit the breakpoints.

Brian
+5  A: 
Ishmaeel
A: 

Use the Modules view to see if your exe/dll is loaded, and if not, to specify where to load the PDB from.

Nick
A: 

yeah i forgot to mention that i am in debug mode . And as you said , it doesn't complain .

A: 

Thanks Ishmaeel . I set it to " Native " and it worked . :-)

Heh, silly me, missing the C++ tag :)
Ishmaeel