How to set a software watchpoint in netX Studio?

Q

How to set a software watchpoint in netX Studio?

A

Setting a watchpoint from the Breakpoints view

  1. Open the Breakpoints view menu (white arrow at the top-right corner of the view)
  2. Select 'Add Watchpoint (C/C++)...'
  3. Fill the 'Expression to watch' field, e.g. type a global variable name or a memory address
  4. Click 'OK' to create the watchpoint

(tick) The watchpoint should now appear in the Breakpoints view
(tick) The watchpoint should be hit when the variable or memory address in the watch expression is written to

 Click here to see screenshots...

Setting a watchpoint from the Outline view

The easiest way to set a watchpoint on a global variable before starting a debug session is to use the Outline view:

  1. Open the Outline view from 'Window > Show View > Outline'
  2. Right-click on the variable and select 'Toggle Watchpoint'
  3. Edit the watch expression if necessary and click 'OK' to create the watchpoint

 Click here to see screenshots...