Debug Console panel


This panel exchanges data between the console and program. This is accomplished by executing a program which has standard library functions implemented in it.

Note that this panel can be opened only when CS+ is connected with the debug tool.

Figure A.40

Debug Console Panel

 

This section describes the following.

[How to open]

-

Select [Debug Console] from the [View] menu.

[Description of each area]

(1)

I/O area

The standard library functions implemented in the program include, for example, the scanf function for reading the data entered from the keyboard and the printf function for outputting data.

Also, by specifying a COM port on the panel, it is possible to redirect standard I/O of the program to the specified COM port.

To use this function, the program must have the low-level interface routines provided by the debug tool implemented in it (see "2.19 Using the Debug Console").

Remark

[Simulator]
For details about the I/O functions provided by the simulator, see "B. I/O FUNCTIONS."

(a)

Zoom in or out on a view

To zoom in and out of the Debug Console panel view, change the zoom ratio by using the drop-down list on the toolbar of the Main window while the focus is placed in the Debug Console panel.

You can also change the zoom ratio by using the [Ctrl] key + mouse-wheel combination.

-

Using the [Ctrl] key + mouse-wheel forward will zoom into the view, making the contents larger and easier to see (max. 300%).

-

Using the [Ctrl] key + mouse-wheel backward will zoom out of the view, making the contents smaller (min. 25%).

 

If the panel is closed after the zoom ratio is changed, the changed zoom ratio is retained (next time, the panel will open at the changed zoom ratio).

[[Edit] menu (Debug Console panel-only items)]

The [Edit] menu items provided exclusively on the Debug Console panel are as follows. (The other items are shared.)

Copy

Copies a selected character string to the clipboard.

Paste

Inserts the content of the clipboard into the caret position.

Select All

Selects all of the character strings displayed on this panel.

[Context menu]

Copy

Copies a selected character string to the clipboard.

Paste

Inserts the content of the clipboard into the caret position.

Clear

Clears the display of this panel.

Enable/Disable

Chooses to enable (default) or disable the debug console (a toggle switch).

Note that when the debug console function is disabled, the panel's background color changes to gray.

COM Port...

Opens the Port Setting dialog box to set a COM port on the host machine to which communication from the microcontroller is redirected.

Log File...

Opens the Open Log File dialog box to save the displayed content of this panel to a specified log file (*.log).

Logging begins.

Logging

Chooses to start (default) or stop logging (a toggle switch).

However, this item is disabled when no log files are specified.

Echo Back

Chooses to enable (default) or disable local echo back (a toggle switch).

If local echoback is disabled, the input data is not output to this panel.