release vs debug mode

This is a discussion on release vs debug mode within the Tech Board forums, part of the Community Boards category; Does anyone know of a way to tell if a compiled binary was compiled in release or debug mode? In ...

  1. #1
    Registered User
    Join Date
    Sep 2004
    Location
    California
    Posts
    3,246

    release vs debug mode

    Does anyone know of a way to tell if a compiled binary was compiled in release or debug mode? In other words, I'm looking for a way to tell if a binary has debugging symbols included.

    This is for Microsoft's compilers on the Windows platform. Obviously this is not a binary I compiled, so an answer of "check your visual studio settings" doesn't help me.

  2. #2
    Registered User
    Join Date
    Jan 2005
    Posts
    847
    Open it in a debugger?

  3. #3
    Registered /usr
    Join Date
    Aug 2001
    Location
    Newport, South Wales, UK
    Posts
    1,262
    Yes. The Win32 Portable Executable (PE) header does usually include at least a debug flag for C/C++ compiled programs. If you have Dependency Walker in your Visual Studio Tools (if not, get it from http://www.dependencywalker.com), it will indicate which linked DLLs are debug builds. The header is how it knows.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 4
    Last Post: 09-16-2006, 07:11 PM
  2. Results in Debug and Release mode are different
    By jaro in forum C Programming
    Replies: 11
    Last Post: 05-27-2006, 11:08 AM
  3. Release vs. Debug mode builds
    By earth_angel in forum C++ Programming
    Replies: 5
    Last Post: 11-10-2005, 03:41 PM
  4. Debug Mode Vs. Release Mode
    By incognito in forum Tech Board
    Replies: 5
    Last Post: 12-18-2003, 03:06 PM
  5. 2min in debug mode, 3sec in release!
    By glUser3f in forum C++ Programming
    Replies: 9
    Last Post: 10-03-2003, 01:00 PM

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