Break when a variable is assigned some value

Yes – What you need to setup is a ‘Conditional Breakpoint’ – this gives you the ability to stop the program execution and step through the debugger when a certain state of the application is reached.

So, let’s say you want to jump into a particular point in the execution when a certain condition is fulfilled (as per the image attached), you can do this as follows:

1.

Open your debugger perspective and select the ‘BreakPoints’ tab

  1. Add a new BreakPoint in the code file – at the appropriate place where you would like to observe the program execution

  2. Then go back to the ‘Breakpoints’ tab, right-click on the newly added entry, and select ‘Breakpoint Properties’

  3. Set the condition upon which it should be activated

alt text
(source: ibm.com)

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)