You can set hardware tracepoints from the source code as well as from the Disassembly view. A hardware tracepoint is set from the source code on an instruction; while it is set from the Disassembly view on an address. You can also set hardware tracepoints from the Trace and Profile tab of the Debug Configurations window by configuring the DWT settings. Configuring DWT settings includes setting comparators as triggers along with their reference value and selecting the event that generates the comparators match. When this event occurs, triggers are fired and trace is collected.