Debuggers and Trackers

 

 

There are currently two ways to debug your programs:

 

Project Settings The first is via the default debugger specified for this type of project. The external debugger program is specified in the Project Information window.

For "AmigaOS4SDK" projects, this is set to "GDB", and is run as an external program.

The default debugger may be set to something else, or nothing, depending on the type of project being worked on. Not all project types support the ability to be able to debug their results.

 

Select Debugger The second is via one of the debugger "plugins" that may be installed on your system. You will have the option to start these plugins, or the default debugger for the project when the Debug button (or menu item) is selected.

You may select the plugin of interest from the list by double-clicking it and following any instructions that may appear.

For the sake of completeness, each one is described below:

 

Amnesia
Amnesia Debug Plugin This debugger will run your target program for you after installing some wedges into the system, and tracks any memory leaks by measuring imbalances in memory allocations and de-allocations. Once the target program has exited, you will see a list of all allocations which have not been freed by the program. Once you close this window, Amnesia will return all un-freed allocations back to the system for you. This creates a very simple memory tracking system which can help to narrow down any memory leaks that may occur from normal program execution. Only memory that is allocated by your target program is shown in the list, and will track calls to the following functions:

AllocAbs
Allocate / Deallocate
AllocEntry / FreeEntry
AllocNamedMemory / FreeNamedMemory
AllocMem / FreeMem
AllocPooled / FreePooled
AllocSignal / FreeSignal
AllocSysObject / FreeSysObject
AllocTaskMemEntry
AllocTrap / FreeTrap
AllocVec / FreeVec
AllocVecPooled / FreeVecPooled
CreatePool / DeletePool

 

back to the top

Valid XHTML 1.0 Transitional This is a W3C checked and compliant webpage.