Sun Studio 12 Update 1: Debugging a Program With dbx

Setting Breakpoints on Java Methods

Unlike native applications, Java applications do not contain an easily accessible index of names. So you cannot simply type:


(dbx) stop in myMethod

Instead, you need to use the full path to the method:


(dbx) stop in com.any.library.MyClass.myMethod

An exception is the case where you are stopped with some method of MyClass in which myMethod should be enough.

One way to avoid including the full path to the method is to use stop inmethod:


(dbx) stop inmethod myMethod

But doing so might cause stops in multiple methods name myMethod.