Using conditional breakpoints in SmartDeck 3.6

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #5363
    Chris Torr
    Keymaster
    August 7, 2020

    To add a condition to a breakpoint, right click on it in Eclipse and select the Breakpoint Properties… option. The supported features, Condition and Ignore count, are on the Common page.

    Conditional breakpoint options in Eclipse

    Condition can be in one of the following forms

    • expression1 = expression2
    • expression1 = literal value
    • expression1 != expression2
    • expression2 != literal value

    For example:
    • x = 3
    • bCount = 0x0A
    • abData[bCount] != abData[3]

    Note:
    • == means the same as =
    • The spaces are important and must be present
    • The comparison is done using a simple string comparison of the left and right hand sides of the operator, the format of any evaluated expression being determined by the type of the data. So, in the example bCount = 0x0A the condition would not be true if bCount was evaluated as the decimal value “10”. The default representation of an expression can be seen by adding to the Expressions window or hovering over it. Also, the Debugger Console window in Eclipse outputs the result of conditional breakpoint evaluations.

    Ignore count is the number of times the breakpoint will be ignored before execution halts. If a Condition is also set then it is the number of times that the breakpoint condition has been met that will be ignored.

    #5364
    Vidisha Nayee
    Keymaster
    February 28, 2023

    What about watchpoints?

    #5365
    Chris Torr
    Keymaster
    August 7, 2020

    A single watchpoint may be set which will trigger a break in execution if the variable being watched is written to. Watchpoints are set in Eclipse by selecting the variable declaration (NOT local variables) and selecting the Run->Toggle Watchpoint menu option. The Debugger Console window provides information on Watchpoint setting.

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.