CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 7 of 7
  1. #1
    Join Date
    Jun 2002
    Location
    India,bangalore
    Posts
    295

    Release with Debug in VC++ VS2005?

    Hi all,

    In VS2005 Vc++ how can i run a application in Relase mode with debug support.

    thanks ahead

  2. #2
    Join Date
    Oct 2006
    Location
    Sweden
    Posts
    3,654

    Re: Release with Debug in VC++ VS2005?

    Haven't tried it but opened one of mine projects and debug database output was set for both debug & release build. I guess it's just to set release build and then run in debugger (didn't see any debug settings in compiler, only linker). I don't think it's easy though due to optimization and so on.

  3. #3
    Join Date
    Jun 2002
    Location
    India,bangalore
    Posts
    295

    Re: Release with Debug in VC++ VS2005?

    thanks for the info S_M_A.

    If i create a new vc++ project in VS2005 even in release mode i can debug by default.
    As i have converted from vc6 to vc++ VS2005 i have a problem.

    still not able to debug in release mode...

  4. #4
    Join Date
    Oct 2006
    Location
    Sweden
    Posts
    3,654

    Re: Release with Debug in VC++ VS2005?

    I tried and it worked alright. However, it was hard to find a valid place to set a breakpoint, probably due to optimization.

  5. #5
    Join Date
    Jul 2002
    Location
    Portsmouth. United Kingdom
    Posts
    2,727

    Re: Release with Debug in VC++ VS2005?

    Debug information in release mode can be useful when tracing the source of a crash by cross referencing the exception address with the map file. For stepping through the code it's not a lot of use, as the optimisations will make it unlikely to follow the actual position in the code and the variable values may or may not have anything to do with reality.

  6. #6
    Join Date
    Jun 2002
    Location
    India,bangalore
    Posts
    295

    Re: Release with Debug in VC++ VS2005?

    S_M_A:
    I tried most of the places to set a breakpoint but was not able to debug in release mode.
    when i execute the application breakpoint vanishes.
    by the way which place did you put break point.

    JohnW@Wessex :
    Yes, I wanted to trace the source of a crash by cross referencing the exception address with the map file. But was not able to debug in release mode.

  7. #7
    Join Date
    Apr 1999
    Posts
    3,585

    Re: Release with Debug in VC++ VS2005?

    Have a look at Debugging Release mode Problems . In particular, pay attention to Rule #7.
    Gort...Klaatu, Barada Nikto!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured