Generating for debug
Before the debugger can be used to debug, Cobol Programs have to be generated in debug mode. There are two ways to generate in debug mode. The first is checking the 'Generate in public debug' checkbox in the generation set of the application. This option is only available in a generation set when also the 'Generate objects in edit' checkbox is checked (See Generation Sets). The second way is to check the checkbox 'Private debug' in the generate window of the AMT-COBOL Developer Studio before generating.
The relation of the 'Generate in public debug' checkbox in the generation set and the 'Private debug' checkbox in the generator window is as follows:
- When the 'Generate in public debug' checkbox in the generation set is unchecked.
- When in the AMT-COBOL Developer Studio the checkbox 'Private debug' is unchecked during generation the selected objects will be generated in normal release mode and placed in the normal public folder. I.e.
\Binaries\Programs for Cobol Programs.
Debug versions of the objects found in the user's debug folder will be removed and when the user's debug folder is empty it will be removed. - When in the AMT-COBOL Developer Studio the checkbox 'Private debug' is checked during generation the selected objects will be generated in debug mode and placed in the user's debug folder. I.e.
\Binaries\Programs\<Username>\ for Cobol Programs.
- When in the AMT-COBOL Developer Studio the checkbox 'Private debug' is unchecked during generation the selected objects will be generated in normal release mode and placed in the normal public folder. I.e.
- When the 'Generate in public debug' checkbox in the generation set is checked.
- When in the AMT-COBOL Developer Studio the checkbox 'Private debug' is unchecked during generation the selected objects will be generated in debug mode anyway and be placed in the public folder. Debug versions of the objects in the user's debug folder will not be removed.
- When in the AMT-COBOL Developer Studio the checkbox 'Private debug' is checked during generation the selected objects will be generated in debug mode and placed in the user's debug folder.
When both public and user debug versions of an object are available in the debugger, a choice can be made which version of the object will be debugged by selecting Synchronize objects.