Thread: release vs debug mode

  1. #1
    Registered User
    Join Date
    Sep 2004

    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
    Open it in a debugger?

  3. #3
    Registered /usr
    Join Date
    Aug 2001
    Newport, South Wales, UK
    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, 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, 04:41 PM
  4. Debug Mode Vs. Release Mode
    By incognito in forum Tech Board
    Replies: 5
    Last Post: 12-18-2003, 04: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