Debugging a Core File

Related Topics:

Load Core File Dialog Box

When a program crashes and produces a core file, you can attach to it for debugging.

To load a core file:

1. In the Sun WorkShopmain window or the Debugging Window, choose Debug Load Core File.

2. Type the program name and core file name in the appropriate text boxes in the Load Core File Dialog Box.

3. Click OK.

Only a limited number of debugging commands are available for core files. You can use the Stack commands to examine the state of the call stack at the time the program faulted. You can use the Data pane to evaluate variables and expressions to see what values they had at the time the program crashed. However, you cannot evaluate expressions that make function calls.


Note - Use Quick Mode to debug a program you think might crash and produce a core dump. The Debugging window stays open in the background ready to take over control of the process right before the program crashes, preventing a core dump. You can then proceed to debug the program with the full debugging functionality.