Oracle Solaris Studio 12.2: dbx コマンドによるデバッグ

print コマンド

print コマンドを使用して、インスタンス化された関数またはクラステンプレートメンバー関数を評価します。


(dbx) print iarray.getlength()
iarray.getlength() = 5

print を使用して this ポインタを評価します。


(dbx) whatis this
class Array<int> *this;
(dbx) print *this
*this = {
    length = 5
    array   = 0x21608
}

詳細については、print コマンド」を参照してください。