The following parameters can be specified in the IDB operation mode:
- Entry address: the address where the execution starts. This parameter can be specified in three ways (listed in order of precedence): - by renaming the desired location as "ENTRY" (global name) - by selecting an address range with the mouse or keyboard. The selection start address is used as the entry point - by positioning the cursor at a given position and running the debugger
- Exit address (optional): the address where the execution ends. This parameter can be specified in two ways: - by renaming the desired location as "EXIT" (global name). Please note that the emulation will stop at the item following the exit label. - by selecting an address range with the mouse or keyboard The selection end address is used as the exit point If the exit address is not specified, the execution will continue until an exception occurs. However, if the exit address is reached, the debugger will ask the user if emulation should be continued or not.
- Startup stack size: number of KBs to allocate for the stack segment. The stack segment is automatically created and named as "STACK".It may also prove useful to enable the "Debugger Setup/Suspend on debugging start" so that IDA automatically suspends the process before executing the first instruction.
While debugging, exceptions may occur and are caught by IDA. Please note that these exceptions are raw machine exceptions. For example, instead of an access violation exception, a page fault exception is generated.