Core Dump Commands

Overview

Core dump commands are available in the Debug menu for specific controllers.

This function is not available for all supported controllers. Consult the Programming Guide specific to your controller.

For further information on the core dump creation, refer to Core Dump .

Create Core Dump Command

The Debug > Create Core Dump command is available for specific controllers when the application is in online mode.

When you execute the command, a verification is made on the controller:

If...

Then ...

If there is already a core dump file,

Then you are asked whether it should be loaded to the project folder.

If there is no core dump file, or if you refused to load the existing one, and if the application is halted at a breakpoint or an exception error has been detected,

Then a dump file with the application data is created.

This file is stored in the project folder:

<project name>.<device name>.<application name>.<application guid>.core

You can cancel the creation via a button in the status bar.

The content of the core dump file depends on the runtime system. Appropriate runtime systems create a dump whenever an exception error is detected. In this case, you can use the command Load Core Dump to display the dump for error analysis purposes.

Load Core Dump Command

The Debug > Load Core Dump command is available for specific controllers when the application is in offline mode.

When you execute the command, the project folder is searched for core dump files:

If...

Then ...

If the creation of a new core dump is forced via the command Create Core Dump,

Then the dump file is loaded automatically from the controller into the project.

If multiple core dump files are found,

Then you are asked whether the last created should be opened in the project.

Alternatively you can select another one.

If you load the dump into the project, then an online view of the application opens. It shows the state of the application at the time when the core dump was created. In this view, you can then monitor values of variables. In addition, the callstack is available.

NOTE: Execute the command Close Core Dump to close the Core Dump view. The command Logout is not effective in this view.

Load device log from Core Dump Command

The Debug > Load device log from Core Dump command is available for specific controllers when the application is in offline mode and a core dump is opened.

When you execute the command, the log list of the controller is loaded, which has been saved together with the last created core dump.

The log list is displayed in the same view as in online mode in the tab Log of the device configuration editor.

Close Core-Dump Command

The Debug > Close Core-Dump command is available for specific controllers when the application is in offline mode and a core dump file has been loaded from the controller to the project.

The command closes the opened view of the application in which the data and variable values of the core dump are displayed.