Debugging

Even if you did write a program in disciplined, well-structured, careful manner, you probably still need to debug it to find some bugs. Delphi offers great debugging tools and when you know how to use them, you will surely save a lot of time finding the exact reason of the problem. In this small tutorial I will explain some nice features in Delphi which will help you to debug your programs. Because it is better to avoid bugs, I will also give some tips for making better programs. Before you can start using the Delphi debugger tools, you have to make sure all necessary settings are set. Project options Go to the tab Compiler in the project options via the menu Project >> Options . Uncheck Optimization , check Stack frames and check some of the Debugging options. Without these options you will not be able to use all the debugging tools. When creating an official build of your application it is better to uncheck all Debugging options and to check Optimization. Your final EXE will be a little bit smaller without this debug information. Just use the default Linker options. When using external debuggers like MemProof you sometimes have to set the Map file to Detailed and check Include TD32 debug info . In all other cases don’t check the EXE and DLL options and don’t use the Map file…
download Debugging.Pdf

 
 
 

locate all visitor site