i'm using VC++ express edition.
I was trying to debug one of the examples that come with the help system. but even after setting breakpoints the program doesn't break at the particular break points. it was working fine a couple of hours ago.
i tried debugging the same program that i debugged a couple of hours ago. even tht wouldn't work. i don't know if this is a bug in the vc++ .. but its really bugging me.
i've been trying for the last hour to debug the program and its not working.
thanks in advance...

debugging not working
Plume-Tsee
am trying to port an application wich works on Mingw compiler version to win32 on VC++
I'm trying to build a GTK 2.0 application with VC++. Building with MinGW works,
Am using mapserver
when i try to load a map in the windows i get the message cannot load file "C:...file.map" and projection librairie error
I think i can figure it out but when i want to run the application in the debug mode although i toggle a breakpoint to the msloadmap function (where comes from the error i gess as reported by the return variable wich is null and should not) but i can't step in the function, i ve tried to include the mapserver function in order to make it textually part of the project but it doesnt work.
ANYWAY
in one word : i_can't_step_in_ a_function.
am using visual c++ 2005 express edition
Does anyone have any suggestions about what to look for
If I'm missing some important information, let me know and I'll post more.
Jason Whitehurst
I'm getting the same message with VS05 TS (RTM). The problem stems from include file that disables debugging. I think it's the following:
#else
// !DBG#define Debug(s) // Statement/declaration included only if DBG
#define Retail(s) s // Statement/declaration included only if !DBG
#define DebugOrRetail(d, r) r // d if DBG; r if !DBG
#endif // !DBG
fMy problem is like most dev's, they have overloaded new. I'm forced to not use their debug overloaded new - and this puts me into a postion where there includes somehow force my output to not be built with debug info. I've checked my properties conif properties\C++\command line and /Zi shows up.
rpsprott
I agree with you. Debugger guru Mr. Jone Robbins says in his very famous book that any warning should be treated as ERRORS. I follow his advice almost always. In reality, however, his advice may put a lot pressure on C++ beginners. May I have your very personal comment on this
Very sorry to interrupt you and many thanks in advance.
techbob62
Make sure the current configuration is Debug.
Go to
Configuration properties
C/C++
General
There is an item called Debug Information Format, set it to ZI or Zi, then go to
Configuration Properties
Linker
Debugging
Activate the Generate Debug info, Im not sure if you also need the Generate Map file item.
You will be able to debug now.
Gus Perez
You should try to do a complete clean rebuild of your application: ensure that there are no errors and then try to debug it.
PriyaGhosh
Mark Doughty
Search http://msdn.microsoft.com for debug information or the compiler switch /Zi to enable debug info.
Thanks,
Ayman Shoukry
VC++ Team
richardjjs
just in case here are my settings
in:
Configuration Properties
C/C++
General
Additional Include Directories : empty
Resolve #using References : empty
Debug Information Format : ZI
Supress Startup Banner : Yes(/nologo)
Warning level : Level 1
Detect 64 bit : no
treat warnings as errors : no
use unicode response files : no
in:
Configuration Properties
Linker
Debugging
Generate debug info : yes(/debug)
Generate program database file : $(TargetDir)$(TargetName).pdb
Strip Private Symbols : empty
Generate Map File : Yes (/map)
Map file name : empty
Map Exports : No
Debuggable Assembly: No debuggable attribute emitted
Those are my settings.
Kurt Vergeyle
I am able to get the debugger to break-in with the above settings but, I cannot see debug info for local variables.
I explictly added the variable to the watch window and see the following message -
moveitem CXX0017: Error: symbol "moveitem" not found
Is some other setting missing.
Anothe question regards to default projects, why is this debugging information set by default for all VC++ projects
Thanks
Sunil.
SudeepNambiar
When I try debugging a message box pops up and says,
"Do you want to continue debugging "
When I click 'yes' it directly takes me to the source code and no debugging happens...
i'm clueless as to what to do..
Brownr21
How exactly do you build the application with debug information In the general toolbar, the options are set to debug and win32. Inspite of that it gives me the same above response.
I tried searching the link you gave me but I can't find anything that could help me.
Actually the first time I debugged the same program it worked fine. The second time around, a couple of hours later after some modifications I tried debugging and it wouldn't work. I don't know why..!