Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. pdb VC++

pdb VC++

Scheduled Pinned Locked Moved C / C++ / MFC
tutorialannouncementc++sales
4 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • V Offline
    V Offline
    VVVimal
    wrote on last edited by
    #1

    Can any one give tips in how to use pdb file. Currently i am working in real time project. Where we give only the executable to customer. Rare occasion the appilication crashes. Is analysing pdb is good procedure. If so how to generate pdb for release version VC++. What settings has to be made set . If any give me simple example it much helpful for me.Thanks in advance.......

    S A A 3 Replies Last reply
    0
    • V VVVimal

      Can any one give tips in how to use pdb file. Currently i am working in real time project. Where we give only the executable to customer. Rare occasion the appilication crashes. Is analysing pdb is good procedure. If so how to generate pdb for release version VC++. What settings has to be made set . If any give me simple example it much helpful for me.Thanks in advance.......

      S Offline
      S Offline
      Sauro Viti
      wrote on last edited by
      #2

      Open the properties window of your project and select the release configuration, then:

      1. in the general section of C++ properties, ensure that the field Debug Information Format is set to Program Database (/Zi)
      2. in the debugging section of Linker properties, ensure that the field Generate Debug Info is set to Yes (/DEBUG) (the field Generate Program Database File will hold the path of the generated pdb file)

      Cheers, Sauro

      1 Reply Last reply
      0
      • V VVVimal

        Can any one give tips in how to use pdb file. Currently i am working in real time project. Where we give only the executable to customer. Rare occasion the appilication crashes. Is analysing pdb is good procedure. If so how to generate pdb for release version VC++. What settings has to be made set . If any give me simple example it much helpful for me.Thanks in advance.......

        A Offline
        A Offline
        ARopo
        wrote on last edited by
        #3

        If you ship release binaries to the customer your code will be optimised and therefore using the pdb file will make no sense. In the past I've logged a callstack to a file when an unhandled exception has occurred by setting a hook into the kernel exception handler the walking the stack. Doing this can give you a stack in hex (though functions are often missing due to optimisation). You can then decode the stack information using a map and cod files generated at build time giving you the line in the code that caused the exception.

        1 Reply Last reply
        0
        • V VVVimal

          Can any one give tips in how to use pdb file. Currently i am working in real time project. Where we give only the executable to customer. Rare occasion the appilication crashes. Is analysing pdb is good procedure. If so how to generate pdb for release version VC++. What settings has to be made set . If any give me simple example it much helpful for me.Thanks in advance.......

          A Offline
          A Offline
          Abhi Lahare
          wrote on last edited by
          #4

          Once you have the pdb files suggested by another poster, you can refer to this link for a example. Windows Debuggers: Part 1: A WinDbg Tutorial[^]

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups