Setting and Deleting a Breakpoint - Command-line

  1. To set a breakpoint:
    1. Enter the following command: (idb) break main

      A breakpoint is now set at main.

    2. Enter run to run the application again.

      The application should stop at the breakpoint you set.

  2. To delete the breakpoint:
    1. List the IDs of all existing breakpoint by entering the following command: (idb) info breakpoints

      The debugger displays all existing breakpoints.

    2. Identify the ID of the breakpoint you want to delete. If you have not set any other breakpoints since starting the debugger, there is only one breakpoint, and its ID is 1.
    3. Delete the breakpoint by entering the following command: (idb) delete breakpoint 1

      You have deleted the breakpoint you set.

    4. Run the application again.

      The application runs, and displays Hello World! in the shell that spawned the debugger, and the program exits.


Submit feedback on this help topic

Copyright © 2001-2011, Intel Corporation. All rights reserved.