Debugging in VC++2005

This is a discussion on Debugging in VC++2005 within the C++ Programming forums, part of the General Programming Boards category; Hello and help... I know how to debug in Dev-C++, but when I set breakpoints in Visual C++ 2005 and ...

  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 wrongness Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,452
    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.
    I support http://www.ukip.org/ as the first necessary step to a free Europe.

  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,317
    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,317
    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, 09: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, 01:14 PM
  5. Debugging book recommendation
    By dagans in forum Projects and Job Recruitment
    Replies: 1
    Last Post: 09-13-2005, 07:35 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21