KDE/kdevelop/languages/cpp/debugger

Kris Wong wongk at seapine.com
Fri Dec 14 16:24:40 UTC 2007


> std::map? or std::list? To display both, you need to actually traverse
> data structures.

;------------------------------------------------------------------------------
;  std::map
;------------------------------------------------------------------------------
std::map<*>{
        children
        (
                #tree
                (
                        head : $c._Myhead->_Parent,
                    skip : $c._Myhead,
                    size : $c._Mysize,
                    left : _Left,
                    right : _Right
                ) : $e._Myval
        )

        preview
        (
                #(
                        "[",
                        $e._Mysize,
                        "](",

                        #tree
                        (
                                head : $c._Myhead->_Parent,
                                skip : $c._Myhead,
                                size : $c._Mysize,
                                left : _Left,
                                right : _Right
                        ) : $e._Myval,

                        ")"
                )
        )
}

Guess that proves my assumption about scripting incorrect! =]

Kris Wong




More information about the KDevelop-devel mailing list