Is there any printf command in Debugger shell or command line?

For logging the variable to a file in decimal format, follow the steps listed below:

  1. Start a log session in the Debugger Shell , for this use the log command by specifying the " help log" in the Debugger Shell . For example,

    log s c:\ logfile.log

  2. Use the display command to log the results to that file. For logging in decimal format, use the command

    display counter %d

  3. After you finished logging the variable value, use the log off command to close the session log file.

You can also add a Debugger Shell Action to a breakpoint. For this, follow the steps listed below:

  1. Right-click the desired breakpoint and select Breakpoint Properties from the context-menu.

    The Properties for dialog box appears.

  2. Select Actions from the list in the left panel.
  3. Click the New button in the right panel.

    The New Breakpoint Action dialog box appears.

  4. Select the Debugger Shell Actions from the Action type drop-down list.

The Debugger Shell action will be added to the breakpoint.