Sun Studio 12 Update 1:使用 dbx 调试程序

stop in function 命令

可使用 stop in 命令在模板类的成员函数或在模板函数中设置断点。

对于类模板实例化的成员:


(dbx) stop in Array<int>::Array(int l)
(2) stop in Array<int>::Array(int)

对于函数实例化:


(dbx) stop in square(double, double*)
(6) stop in square(double, double*)

有关更多信息,请参见stop 命令in function