Sun Studio 12: Debugging a Program With dbx

Setting a Breakpoint at an Address

To set a breakpoint at a specific address, type:


(dbx) stopi at address

For example:


(dbx) nexti
stopped in hand::ungrasp at 0x12638
(dbx) stopi at &hand::ungrasp
(3) stopi at &hand::ungrasp
(dbx)