learnyourabc
2007-06-22 06:36:44 UTC
I have a legacy release mode mfc application at customer site that
generates a exception at some address. For some reason, I am not able
to debug the system there and is not able to simulate the error on my
pc.Lets say I am able to get the address that this exception occurs.
Will It be too late to debug it now by generating the pdb files as
shown below
First go to Project->Settings, select the release build, then:
On the C/C++ tab for all librarys, DLLs and executables, in the
general category, set Debug Info to Program Database. This tells the
compiler to generate debug information.
On the link tab for all DLLs and executables, in the general category,
put a check mark beside Generate Debug Info. This tells the linker to
collate debug information into .pdb files. The linker also puts the
name of the .pdb file in the executable, so the debugger can find it.
That's why your executable gets a bit bigger. Dumpbin /headers will
show you that information.
If I were to have the same source code and project that generated that
exe file and
only now try to generate debug information or the pdb. This exe will
be different from the one at the customer's site right?
Ctrl G to goto that address given will it be the same instruction or
statement.
Thanks for any help rendered.
generates a exception at some address. For some reason, I am not able
to debug the system there and is not able to simulate the error on my
pc.Lets say I am able to get the address that this exception occurs.
Will It be too late to debug it now by generating the pdb files as
shown below
First go to Project->Settings, select the release build, then:
On the C/C++ tab for all librarys, DLLs and executables, in the
general category, set Debug Info to Program Database. This tells the
compiler to generate debug information.
On the link tab for all DLLs and executables, in the general category,
put a check mark beside Generate Debug Info. This tells the linker to
collate debug information into .pdb files. The linker also puts the
name of the .pdb file in the executable, so the debugger can find it.
That's why your executable gets a bit bigger. Dumpbin /headers will
show you that information.
If I were to have the same source code and project that generated that
exe file and
only now try to generate debug information or the pdb. This exe will
be different from the one at the customer's site right?
Ctrl G to goto that address given will it be the same instruction or
statement.
Thanks for any help rendered.