Click to See Complete Forum and Search --> : HELP PLEASE, I can't debug under vs2005


Salvadoravi
February 9th, 2008, 08:37 AM
Hi Guys.

I'm new to Visual Studio 2005.

When I try to debug my application using a break point, the compiler tells me that "The breakpoint will not currently be hit. No symbols have been loaded for this document"

I think I need to download Windows Symbol Packages and set it up in Options->Debugging menu.
But I don't know which version should I download if at all.

http://www.microsoft.com/whdc/devtools/debugging/symbolpkg.mspx

Please help me gurus!!!!

S_M_A
February 9th, 2008, 09:07 AM
Those symbols shouldn't be neccessary for debugging your own code. Are you sure that the code is built for debug? Are you sure the code to debug is present (removed by an #ifdef maybe)?

Salvadoravi
February 9th, 2008, 09:27 AM
Thank you for your reply.

I am using Debug mode, and I didn't include any #ifdef.
However I did install VS2005 2 days ago.

Maybe the way I've build the project??
The Code I am now using I've build as follows:

New->Project->Win32 - > Win32 Console Application.
That I added -> New Item -> Utility -> Text file.

Then I convert the txt file to .c extension (it's a c program)
and then I wrote the code.


Many thanks

S_M_A
February 9th, 2008, 04:05 PM
Haven't experienced this myself but maybe that's the reason even though it seems odd. Any C-file included in project should be possible to run in debugger.

Salvadoravi
February 11th, 2008, 01:52 PM
Thank you S.M.A

Problem solved!

I've used an empty project to build my code and I didn't know I had to configure all the properties of the project to make it debug.

When I've build a WIN32 Console application it all worked just fine.

Sorry for my previews post. It's my mistake
Thank you for your help!