Please enable JavaScript to view this site.

Memory Validator Help

Debug information can be provided using two methods.

 

Debugging information (TDS or DWARF format)

 

MAP files

 

 

Debugging Information

 

Debug configurations of C++ Builder projects automatically generate debug information that provides symbols, filenames and line numbers.

 

However the release configurations of C++ Builder projects do not automatically generate debug information. You need to configure that yourself.
 
Here's how you do that. It's slightly different if you're building 32 bit applications rather 64 bit applications.

 

You need to set both compiler and linker settings to get debug information. Setting just one or the other will not give you debug information you can use.

 

 

32 bit C++ Builder

 

Project Configuration

 

Change your project settings to target 32 bit builds.

 

 CppBuilderRelease_x86

 

Compiler Settings

 

 CppBuilderCompilerOptions_x86

 

Linker Settings

 

 CppBuilderLinkerOptions_x86

 

 

When you have edited the project options you need to rebuild the software for the options to take effect and create the debug information.

 

 

64 bit C++ Builder

 

Project Configuration

 

Change your project settings to target 64 bit builds.

 

 CppBuilderRelease_x64

 

Compiler Settings

 

 CppBuilderCompilerOptions_x64

 

Linker Settings

 

 CppBuilderLinkerOptions_x64

 

 

When you have edited the project options you need to rebuild the software for the options to take effect and create the debug information.

 

 

MAP files

 

MAP files are not generated by default. You need to enable the option to generate a detailed map file.

 

The method is the same for 32 bit and 64 bit C++ Builder.

 

Select the project configuration as shown in the Debugging Information section above, then modify the C++ Linker, Output settings.

 

Linker Settings

 

 CppBuilder_x64_Map

 

 

When you have edited the project options you need to rebuild the software for the options to take effect and create the debug information.

 

 

Debugging Information or MAP files?

 

If you can create both debugging information and MAP files which should I use?

 

Memory Validator uses this information to provide symbols, filenames and line numbers in stack traces.
 
For this purpose it doesn't matter whether you use Debugging Information or MAP files.