[Uml-devel] Turning on kdDebug output

Stephen Torri storri at sbcglobal.net
Tue Mar 4 07:39:01 UTC 2003


On Tue, 2003-03-04 at 09:29, Jonathan Riddell wrote:
> On 4 Mar 2003, Stephen Torri wrote:
> 
> > I have placed kdDebug() statements throughout the function where I am
> > getting umbrello to give me a SIG 11. Yet it is not reporting anything
> > and I am still getting KDE grapping the SIG 11. I was expecting to see
> > my debugging statements in the terminal but I am not.
> 
> Try running kdebugdialogue and turing them all on.
> 
> Also try running configure with --enable-debug=yes
> 
> Jonathan Riddell

I ran kdebugdialog and set all turning all items on. I tried to run
umbrello again. No debug output. Here is the way I edited the function
that is just before the fault:


void UMLListView::slotDiagramCreated( int id ) {
        kdDebug() << "UMLListView::slotDiagramCreated - entered" <<
endl;
        if( loading )
                return;
        UMLListViewItem * temp = 0, *p = 0;
        UMLView *v = doc -> findView( id );
        //See if we wanted to create diagram in folder
        UMLListViewItem * current = (UMLListViewItem *) currentItem();
        kdDebug() << "UMLListView::slotDiagramCreated - First call to
UMLListViewItem" << endl;
        if ( typeIsFolder(current->getType()) ) {
                p = current;
        } else if (v->getType() == Uml::dt_UseCase) {
                p = ucv;
        } else if (v->getType() == Uml::dt_Component) {
                p = componentView;
        } else {
                p = lv;
        }
        kdDebug() << "UMLListView::slotDiagramCreated: " << endl;
        kdDebug() << "   P: " << p << endl;
        kdDebug() << "   v->getName(): " << v->getName() << endl;
        kdDebug() << "   convert_DT_LVT( v->getType()): " <<
convert_DT_LVT(v->getType()) << endl;
        kdDebug() << "   id: " << id << endl;
        temp = new UMLListViewItem( p, v->getName(), convert_DT_LVT(
v->getType() ),  id );
        setSelected( temp, true );
        doc -> getDocWindow() -> showDocumentation( v , false );
}

Stephen
-- 
Stephen Torri <storri at sbcglobal.net>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
URL: <http://mail.kde.org/pipermail/umbrello-devel/attachments/20030304/db3aa8c5/attachment.sig>


More information about the umbrello-devel mailing list