Oracle Solaris Studio 12.2:使用 dbx 调试程序

确定已执行的行数

要了解在小程序中已执行了多少行,请键入:


(dbx) stop step -count infinity     # step and stop when count=inf
(2) stop step -count 0/infinity
(dbx) run
...
(dbx) status
(2) stop step -count 133/infinity

程序永远不会停止,程序只会终止。执行的行数为 133。此进程速度非常慢。它对多次调用的函数中的断点用处最大。