Thread: QT: steps to debug?
i installed qt creator. first thing tried check basic functions usual "hello world" toy program. when entering , saving this, looks fine. switching debugging allows me (hoorah) set breakpoint (not more); , cannot build file.
read qt creator front end gdb of @ least version 6.8., of course have (running 7.0). i'd have thought installation takes care of linking resident debugger application? here ideas wrong. using creator kindly help.
(1) i'm saving programs under <qt folder>/docs/<filename.cpp>. need add path someplace? checked tools etc.
(2) need module link gdb?
(3) ...or ?
installed web page (not synaptic/apt-get), , realize make myself pariah mere fact some...willing install older version via synaptic of course if issue. it? installation looks good, see above.
---------------------
have worked visual studio express (free) , gdb, , both either easy use, or well-documented. qt horror. debugging tells 'need gdb 6.8' (which have) - , that's it. 3rd tutorial (third!!) prefaces topic "...assumes reader familiar (followed 3 rather deeper topics)" that's bit don knuth have, in reference section, link "definition, self-referential" "self-referential definition", , back. really, find sobering. i'm new c++ developing, have coded in more dozen languages, since 80s. patterson/hennessy, standard on comp architecture, has nice quote whitehead in chapter 1: "we measure progress of civilizations amount of tasks can execute w/o thinking them." as want it, working under linux feels more , more stone age, based on definition. got quantitative ph.d., that's worth, , have worked around clock getting in linux 2 weeks now. , can't start; nor know except throwing hands , being embarrassed , thankful possible kindness of strangers on forums this. people friendly , helpful here, i'm used working things out myself. here, , here, don't know , start.
down soapbox.![]()
there no library gdb; there nothing link application.
application, however, need have symbolic information included within able debug it. symbolic information included during compile stage using -g option g++. make sure cflags, or cxxflags, or whatever qmake defines set appropriately. should able use gdb, or perhaps may prefer, ddd.
p.s. ddd gui front-end gdb, , other debuggers.
Forum The Ubuntu Forum Community Ubuntu Specialised Support Development & Programming Programming Talk [SOLVED] QT: steps to debug?
Ubuntu
Comments
Post a Comment