Thread: Debugging in VC++2005

  1. #1
    Registered User
    Join Date
    Jan 2006
    Location
    Latvia
    Posts
    102

    Debugging in VC++2005

    Hello and help... I know how to debug in Dev-C++, but when I set breakpoints in Visual C++ 2005 and press F5, they appear transparent and with a warning sign. A tool tip says- The breakpoint will not currently be hit. No symbols have been loaded for this document.

    So, how to load those symbols? Is my configuration wrong or what? I really need debugger in this program, can't live without it!

  2. #2
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,659
    Sounds like you're producing a release build rather than a debug build.
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

  3. #3
    Registered User
    Join Date
    Jan 2006
    Location
    Latvia
    Posts
    102
    Nope, I'm compiling in Debug mode. The same happens with Release mode.

  4. #4
    Registered User
    Join Date
    Jan 2005
    Posts
    7,366
    What happens when you press F10? When you do, it should take you to the first line of code in your application. What happens when you put a breakpoint on the next line below that.

    This issue happens to me when I have a file that is not in the project loaded in visual studio and attempt to put the breakpoint in there. It is easy to do if you have multiple copies of the same source file lying around.

  5. #5
    Registered User
    Join Date
    Jan 2006
    Location
    Latvia
    Posts
    102
    When I press F10:
    It opens disassembler and jumps on "00401831 call __security_init_cookie (403E66h)"
    I can put a breakpoint on the nextline, but, it doesn't work on source files. All the source files are in my project. How come other people don't have such problems?

  6. #6
    Registered User
    Join Date
    Jan 2005
    Posts
    7,366
    Did you create the project(s) from scratch or import it from Dev-C++ or a previous VC++ version?

    Check the Project Properties and look for the Debugging options to make sure that the generation of debugging information is on.

  7. #7
    Registered User
    Join Date
    Jan 2006
    Location
    Latvia
    Posts
    102
    Firstly, I created a new project, then I added all the files by selecting Add->New Item on the project's folders menu. Debugging information generation is on, otherwise it would ask for it (as it did earlier).

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. SQL Server 2005 using C
    By dunxton in forum C Programming
    Replies: 0
    Last Post: 02-22-2009, 10:57 PM
  2. Task list in VC 2005
    By VirtualAce in forum Tech Board
    Replies: 0
    Last Post: 05-13-2008, 08:59 PM
  3. If you must port to .NET 2005, read this thread.
    By VirtualAce in forum A Brief History of Cprogramming.com
    Replies: 3
    Last Post: 10-22-2007, 06:51 AM
  4. Debugging in microsoft visual studio 2005
    By franziss in forum Windows Programming
    Replies: 2
    Last Post: 11-04-2006, 02:14 PM
  5. Debugging book recommendation
    By dagans in forum Projects and Job Recruitment
    Replies: 1
    Last Post: 09-13-2005, 07:35 PM