Mac QtCreator: Debugger Helper not working
Page |
1 |
Hello,
I can’t seem to get debugger helper working, since I can’t easily see the value of QStrings. I see libDebuggingHelper.1.0.0.dylib in the plugin directory of the app bundle. Use Debugging Helper is checked in Preferences/Debugger/Debugging Helper, but still can’t see the string in QString.
Anything else to check?
19 replies
Hum, couldn’t figure out how to attach a pic to a post, so here’s a link:
Debugger View [supertopo.com]
I’ve just sprinted into sizeStr and expect to see this string in the debugger.
Hum, couldn’t figure out how to attach a pic to a post,
Here is a short explanation on how to do this.
http://developer.qt.nokia.com/wiki/ForumHelp
OK, found it. See below.
The version is:
For Mac:
Qt Creator 2.2.1
Based on Qt 4.7.4(64 bit)
Built on Jun 15 2011 at 15:19:06
From revision 74d015d2a9
- desktop",shlibname="/Users/Chuck/Documents/work/SoftStep/SoftStepQT/SoftStepForm-build-desktop/SoftStepForm.app/Contents/MacOS/SoftStepForm"}}
- <44-stack-select-frame 0
- <45-stack-list-arguments 2 0 0
- <46-stack-list-locals 2
- >43^done,thread-ids={thread-id="2",thread-id="1"},number-of-threads="2",threads={thread={thread-id="2",state="WAITING",mach-port-number="0x1703",pthread-id="0x101581000",unique-id="0x15805",workqueue="com.apple.libdispatch-manager",workqueue_addr="0x7fff7114d960"},thread={thread-id="1",state="WAITING",mach-port-number="0xa0f",pthread-id="0x7fff7115bcc0",unique-id="0x157fb",workqueue="com.apple.main-thread",workqueue_addr="0x7fff7114d8a0"}},time={wallclock="0.00075",user="0.00029",system="0.00046",start="1309461961.635784",end="1309461961.636532"}
- >44^done,time={wallclock="0.00013",user="0.00012",system="0.00001",start="1309461961.714640",end="1309461961.714768"}
- >45^done,stack-args={frame={level="0",args={varobj={exp="this",value="0x7fff5fbff740",name="var10",numchild="2",type="MainWindow * const",typecode="PTR",dynamic_type="MainWindow *",resolved_type="MainWindow *",in_scope="true",block_start_addr="0x0000000100002824",block_end_addr="0x0000000100002c57"},varobj={exp="obj",value="0x1013e1e20",name="var11",numchild="2",type="QObject *",typecode="PTR",dynamic_type="KPix *",resolved_type="QObject *",in_scope="true",block_start_addr="0x0000000100002824",block_end_addr="0x0000000100002c57"},varobj={exp="indentLevel",value="0",name="var12",numchild="0",type="int",typecode="INT",dynamic_type="",resolved_type="int",in_scope="true",block_start_addr="0x0000000100002824",block_end_addr="0x0000000100002c57"}}}},time={wallclock="0.00134",user="0.00093",system="0.00041",start="1309461961.714944",end="1309461961.716280"}
- >46^done,locals={varobj={exp="x",value="1",name="var13",numchild="0",type="int",typecode="INT",dynamic_type="",resolved_type="int",in_scope="true",block_start_addr="0x0000000100002824",block_end_addr="0x0000000100002c57"},varobj={exp="typeString",value="{...}",name="var14",numchild="1",type="QString",typecode="STRUCT",dynamic_type="",resolved_type="QString",in_scope="true",block_start_addr="0x0000000100002824",block_end_addr="0x0000000100002c57"},varobj={exp="indentString",value="{...}",name="var15",numchild="1",type="QString",typecode="STRUCT",dynamic_type="",resolved_type="QString",in_scope="true",block_start_addr="0x0000000100002824",block_end_addr="0x0000000100002c57"},varobj={exp="sizeStr",value="{...}",name="var16",numchild="1",type="QString",typecode="STRUCT",dynamic_type="",resolved_type="QString",in_scope="true",block_start_addr="0x0000000100002824",block_end_addr="0x0000000100002c57"},varobj={exp="childrenList",value="{...}",name="var17",numchild="1",type="QObjectList",typecode="STRUCT",dynamic_type="",resolved_type="QList<QObject*>",in_scope="true",block_start_addr="0x0000000100002824",block_end_addr="0x0000000100002c57"}},time={wallclock="0.00102",user="0.00090",system="0.00013",start="1309461961.716372",end="1309461961.717395"}
- <47-var-delete "local.typeString"
- <48-var-create "local.typeString" * "typeString"
- <49-var-delete "local.indentString"
- <50-var-create "local.indentString" * "indentString"
- <51-var-delete "local.sizeStr"
- <52-var-create "local.sizeStr" * "sizeStr"
- >47^done,ndeleted="1",time={wallclock="0.00004",user="0.00003",system="0.00001",start="1309461961.825291",end="1309461961.825328"}
- >48^done,name="local.typeString",numchild="1",type="QString",typecode="STRUCT",dynamic_type="",resolved_type="QString",in_scope="true",block_start_addr="0x0000000100002824",block_end_addr="0x0000000100002c57",time={wallclock="0.00044",user="0.00032",system="0.00006",start="1309461961.825562",end="1309461961.826002"}
- >49^done,ndeleted="1",time={wallclock="0.00002",user="0.00001",system="0.00000",start="1309461961.826120",end="1309461961.826136"}
- >50^done,name="local.indentString",numchild="1",type="QString",typecode="STRUCT",dynamic_type="",resolved_type="QString",in_scope="true",block_start_addr="0x0000000100002824",block_end_addr="0x0000000100002c57",time={wallclock="0.00023",user="0.00019",system="0.00003",start="1309461961.826279",end="1309461961.826507"}
- >51^done,ndeleted="1",time={wallclock="0.00002",user="0.00001",system="0.00000",start="1309461961.826605",end="1309461961.826620"}
- >52^done,name="local.sizeStr",numchild="1",type="QString",typecode="STRUCT",dynamic_type="",resolved_type="QString",in_scope="true",block_start_addr="0x0000000100002824",block_end_addr="0x0000000100002c57",time={wallclock="0.00022",user="0.00019",system="0.00003",start="1309461961.826741",end="1309461961.826962"}
- <53-var-evaluate-expression "local.typeString"
- <54-var-evaluate-expression "local.indentString"
- <55-var-evaluate-expression "local.sizeStr"
- >53^done,value="{...}",time={wallclock="0.00004",user="0.00003",system="0.00001",start="1309461961.873432",end="1309461961.873469"}
- >54^done,value="{...}",time={wallclock="0.00002",user="0.00002",system="0.00000",start="1309461961.873672",end="1309461961.873690"}
- >55^done,value="{...}",time={wallclock="0.00002",user="0.00001",system="0.00000",start="1309461961.873815",end="1309461961.873831"}
- <Rebuild Watchmodel 2>
- sFinished retrieving data
The entire log can’t be posted due to the 6000 char post limit.
Here’s 1-17. More to follow
- 1show version
- <2set breakpoint pending on
- <3set print elements 10000
- <4set overload-resolution off
- <5handle SIGSEGV nopass stop print
- <6set unwindonsignal on
- <7pwd
- <8set width 0
- <9set height 0
- <10set auto-solib-add on
- <11-interpreter-exec console "maintenance set internal-warning quit no"
- <12-interpreter-exec console "maintenance set internal-error quit no"
- <13-interpreter-exec console "disassemble 0 0"
- <14-interpreter-exec console "python execfile('/Users/Chuck/Downloads/qtcreator-build-desktop/bin/Qt Creator.app/Contents/Resources/gdbmacros/dumper.py')"
- <15-interpreter-exec console "python execfile('/Users/Chuck/Downloads/qtcreator-build-desktop/bin/Qt Creator.app/Contents/Resources/gdbmacros/gdbmacros.py')"
- <16-interpreter-exec console "bbsetup"
- dOBJDUMP PROCESS COULD NOT BE STARTED. RELEASE BUILD CHECK WILL FAIL
- dADAPTER SUCCESSFULLY STARTED
- dNOTE: ENGINE SETUP OK
- dState changed from EngineSetupRequested(1) to EngineSetupOk(3).
- dQUEUE: SETUP INFERIOR
- dState changed from EngineSetupOk(3) to InferiorSetupRequested(4).
- dQUEUE: SETUP INFERIOR
- dCALL: SETUP INFERIOR
- sSetting up inferior...
- <17-file-exec-and-symbols "/Users/Chuck/Documents/work/SoftStep/SoftStepQT/SoftStepForm-build-desktop/SoftStepForm.app"
- dUNEXPECTED GDB STDERR: Undefined maintenance set command: "internal-warning quit no". Try "help maintenance set".
- dUndefined maintenance set command: "internal-error quit no". Try "help maintenance set".
- dUndefined command: "python". Try "help".
- dUndefined command: "python". Try "help".
- dUndefined command: "bbsetup". Try "help".
- d
- >~"GNU gdb 6.3.50-20050815 (Apple version gdb-1518) (Sat Feb 12 02:52:12 UTC 2011)\n"
- >~"Copyright 2004 Free Software Foundation, Inc.\n"
- >~"GDB is free software, covered by the GNU General Public License, and you are\nwelcome to change it and/or distribute copies of it under certain conditions.\nType \"show copying\" to see the conditions.\nThere is absolutely no warranty for GDB. Type \"show warranty\" for details.\n"
- >~"This GDB was configured as \"x86_64-apple-darwin\"."
- >~"\n"
- >&"show version\n"
- >~"GNU gdb 6.3.50-20050815 (Apple version gdb-1518) (Sat Feb 12 02:52:12 UTC 2011)\n"
- >~"Copyright 2004 Free Software Foundation, Inc.\n"
- >~"GDB is free software, covered by the GNU General Public License, and you are\nwelcome to change it and/or distribute copies of it under certain conditions.\nType \"show copying\" to see the conditions.\nThere is absolutely no warranty for GDB. Type \"show warranty\" for details.\n"
- >~"This GDB was configured as \"x86_64-apple-darwin\".\n"
- >1^done
- dPARSING VERSION: 1^done,{logstreamoutput="show version\\n",consolestreamoutput="GNU gdb 6.3.50-20050815 (Apple version gdb-1518) (Sat Feb 12 02:52:12 UTC 2011)\\nCopyright 2004 Free Software Foundation, Inc.\\nGDB is free software, covered by the GNU General Public License, and you are\\nwelcome to change it and/or distribute copies of it under certain conditions.\\nType \\"show copying\" to see the conditions.\nThere is absolutely no warranty for GDB. Type \"show warranty\" for details.\nThis GDB was configured as \"x86_64-apple-darwin\".\nGNU gdb 6.3.50-20050815 (Apple version gdb-1518) (Sat Feb 12 02:52:12 UTC 2011)\nCopyright 2004 Free Software Foundation, Inc.\nGDB is free software, covered by the GNU General Public License, and you are\nwelcome to change it and/or distribute copies of it under certain conditions.\nType \"show copying\" to see the conditions.\nThere is absolutely no warranty for GDB. Type \"show warranty\" for details.\nThis GDB was configured as \"x86_64-apple-darwin\".\n"}
- d
- dUNSUPPORTED GDB VERSION GNU gdb 6.3.50-20050815 (Apple version gdb-1518) (Sat Feb 12 02:52:12 UTC 2011)
- dCopyright 2004 Free Software Foundation, Inc.
- dGDB is free software, covered by the GNU General Public License, and you are
- dwelcome to change it and/or distribute copies of it under certain conditions.
- dType "show copying" to see the conditions.
- dThere is absolutely no warranty for GDB. Type "show warranty" for details.
- dThis GDB was configured as "x86_64-apple-darwin".
- dGNU gdb 6.3.50-20050815 (Apple version gdb-1518) (Sat Feb 12 02:52:12 UTC 2011)
- dCopyright 2004 Free Software Foundation, Inc.
- dGDB is free software, covered by the GNU General Public License, and you are
- dwelcome to change it and/or distribute copies of it under certain conditions.
- dType "show copying" to see the conditions.
- dThere is absolutely no warranty for GDB. Type "show warranty" for details.
- dThis GDB was configured as "x86_64-apple-darwin".
- d
- dUSING GDB VERSION: 60350, BUILD: 1518 (APPLE)
- >&"set breakpoint pending on\n"
- >2^done
- >&"set print elements 10000\n"
- >3^done
- >&"set overload-resolution off\n"
- >4^done
- >&"handle SIGSEGV nopass stop print\n"
- >5^done
- >&"set unwindonsignal on\n"
- >6^done
- >&"pwd\n"
- >~"Working directory /Users/Chuck/Documents/work/SoftStep/SoftStepQT/SoftStepForm-build-desktop.\n"
- >7^done
- >&"set width 0\n"
- >8^done
- >&"set height 0\n"
- >9^done
- >&"set auto-solib-add on\n"
- >10^done
- >11^error,msg="Undefined maintenance set command: \\"internal-warning quit no\". Try \"help maintenance set\"."
- >12^error,msg="Undefined maintenance set command: \\"internal-error quit no\". Try \"help maintenance set\"."
- >Dump of assembler code from 0x0 to 0x0:
- >End of assembler dump.
- >13^done,time={wallclock="0.00008",user="0.00005",system="0.00003",start="1309468754.180667",end="1309468754.180748"}
- >14^error,msg="Undefined command: \\"python\". Try \"help\"."
- >15^error,msg="Undefined command: \\"python\". Try \"help\"."
- >16^error,msg="Undefined command: \\"bbsetup\". Try \"help\"."
- >17^done,time={wallclock="0.45664",user="0.23576",system="0.10105",start="1309468754.182491",end="1309468754.639130"}
- sSetting breakpoints...
- dSetting breakpoints...
18-23 (23 is too large, so just some)
- 18-break-insert -l -1 -f "\"mainwindow.cpp\":164"
- dATTEMPT SYNC
- >18^done,bkpt={number="1",type="breakpoint",disp="keep",enabled="y",addr="0x0000000100002887",func="MainWindow::listChildren(QObject*, int)",file="../SoftStepForm/src/mainwindow/mainwindow.cpp",line="168",shlib="/Users/Chuck/Documents/work/SoftStep/SoftStepQT/SoftStepForm-build-desktop/SoftStepForm.app/Contents/MacOS/SoftStepForm",times="0"},time={wallclock="0.04919",user="0.04104",system="0.00744",start="1309468754.647350",end="1309468754.696540"}
- <19info line *0x100002887
- >&"info line *0x100002887\n"
- >~"Line 168 of \"../SoftStepForm/src/mainwindow/mainwindow.cpp\" starts at address 0x100002887 <_ZN10MainWindow12listChildrenEP7QObjecti+131> and ends at 0x100002933 <_ZN10MainWindow12listChildrenEP7QObjecti+303>.\n"
- >19^done
- dALL COMMANDS DONE; INVOKING CALLBACK
- <20maint print msymbols /var/folders/Iw/IwvLjDL0Fve9fKnHEI1XgE+++TI/-Tmp-/gdb_ns_.EW4283
- >&"maint print msymbols /var/folders/Iw/IwvLjDL0Fve9fKnHEI1XgE+++TI/-Tmp-/gdb_ns_.EW4283\n"
- >20^done
- dFOUND NON-NAMESPACED QT
- <21-break-insert -f 'qFatal'
- >21^done,bkpt={number="2",type="breakpoint",disp="keep",enabled="y",addr="0x003126e978ac90ce",at="<qFatal(char const*, ...)+46>",shlib="/usr/local/Trolltech/Qt-4.7.3/lib/QtCore.framework/Versions/4/QtCore",times="0"},time={wallclock="0.00373",user="0.00358",system="0.00015",start="1309468755.174588",end="1309468755.178317"}
- <22-break-commands 2 return
- dNOTE: INFERIOR SETUP OK
- dState changed from InferiorSetupRequested(4) to InferiorSetupOk(6).
- dState changed from InferiorSetupOk(6) to EngineRunRequested(7).
- dQUEUE: RUN ENGINE
- dCALL: RUN ENGINE
- <23-exec-run
- >22^done,time={wallclock="0.00002",user="0.00001",system="0.00001",start="1309468755.181806",end="1309468755.181829"}
- >~"[Switching to process 4794 thread 0x0]\n"
- dFOUND PID 4794
- dTaking notice of pid 4794
- >=shlibs-updated
- >23^running
- dNOTE: ENGINE RUN AND INFERIOR RUN OK
- dState changed from EngineRunRequested(7) to InferiorRunOk(11).
- dINFERIOR STARTED
- sApplication started
23-28 (25 is too large)
- >23*stopped,time={wallclock="4.47893",user="1.29676",system="0.67154",start="1309468755.183108",end="1309468759.662043"},reason="breakpoint-hit",commands="no",times="1",bkptno="1",thread-id="1"
- dNOTE: INFERIOR SPONTANEOUS STOP
- dState changed from InferiorRunOk(11) to InferiorStopOk(14).
- dThe debugging helper library was not found at .
- <24p 4
- >&"p 4\n"
- >~"$1 = 4"
- >~"\n"
- >24^done
- <25info shared
- <26-break-list
- sStopped at breakpoint 1 (1) in thread 1.
- >&"info shared\n"
- <27-stack-list-frames 0 20
- <28-thread-list-ids
- >25^done,shlib-info={num="1",name="dyld",kind="-",dyld-addr="0x7fff5fc00000",reason="dyld",requested-state="Y",state="Y",path="/usr/lib/dyld",description="/usr/lib/dyld",loaded_addr="0x7fff5fc00000",slide="0x0",prefix="__dyld_"},shlib-info={num="2",name="liblangid.dylib",kind="-",dyld-addr="0x7fff81c9c000",reason="dyld",requested-state="Y",state="Y",path="/usr/lib/liblangid.dylib",description="/usr/lib/liblangid.dylib",loaded_addr="0x7fff81c9c000",slide="0x7fff81c9c000",prefix=""},shlib-info={num="3",name="QtXml",kind="F",dyld-addr="0x10022c000",reason="dyld",requested-state="Y",state="Y",path="/usr/local/Trolltech/Qt-4.7.3/lib/QtXml.framework/Versions/4/QtXml",description="/usr/local/Trolltech/Qt-4.7.3/lib/QtXml.framework/Versions/4/QtXml",loaded_addr="0x10022c000",slide="0x10022c000",prefix=""},shlib-info={num="4",name="QtCore",kind="F",dyld-addr="0x100283000",reason="dyld",requested-state="Y",state="Y",path="/usr/local/Trolltech/Qt-4.7.3/lib/QtCore.framework/Versions/4/QtCore",description="/usr/local/Trolltech/Qt-4.7.3/lib/QtCore.framework/Versions/4/QtCore",loaded_addr="0x100283000",slide="0x100283000",prefix=""},shlib-info={num="5",name="QtGui",kind="F",dyld-addr="0x10059f000",reason="dyld",requested-state="Y",state="Y",path="/usr/local/Trolltech/Qt-4.7.3/lib/QtGui.framework/Versions/4/QtGui",description="/usr/local/Trolltech/Qt-4.7.3/lib/QtGui.framework/Versions/4/QtGui",loaded_addr="0x10059f000",slide="0x10059f000",prefix=""},shlib-info={num="6",name="libstdc++.6.0.9.dylib",kind="-",dyld-addr="0x7fff875f5000",reason="dyld",requested-state="Y",state="Y",path="/usr/lib/libstdc++.6.0.9.dylib",description="/usr/lib/libstdc++.6.0.9.dylib",loaded_addr="0x7fff875f5000",slide="0x7fff875f5000",prefix=""},shlib-info={num="7",name="libSystem.B.dylib",kind="-",dyld-addr="0x7fff8908e000",reason="dyld",requested-state="Y",state="Y",path="/usr/lib/libSystem.B.dylib",description="/usr/lib/libSystem.B.dylib",loaded_addr="0x7fff8908e000",slide="0x7fff8908e000",prefix="",commpage-objpath="/usr/lib/libSystem.B.dylib[LC_SEGMENT.__DATA.__commpage]"},shlib-info={num="8",name="libz.1.2.3.dylib",kind="-",dyld-addr="0x7fff82869000",reason="dyld",requested-state="Y",state="Y",path="/usr/lib/libz.1.2.3.dylib",description="/usr/lib/libz.1.2.3.dylib",loaded_addr="0x7fff82869000",slide="0x7fff82869000",prefix=""},shlib-info={num="9",name="ApplicationServices",kind="F",dyld-addr="0x7fff83cbc000",reason="dyld",requested-state="Y",state="Y",path="/System/Library/Frameworks/ApplicationServices.framework/Versions/A/ApplicationServices",description="/System/Library/Frameworks/ApplicationServices.framework/Versions/A/
29-31
- <29-stack-select-frame 0
- <30-stack-list-arguments 2 0 0
- <31-stack-list-locals 2
- >28^done,thread-ids={thread-id="3",thread-id="2",thread-id="1"},number-of-threads="3",threads={thread={thread-id="3",state="WAITING",mach-port-number="0x1803",pthread-id="0x101604000",unique-id="0x178ac"},thread={thread-id="2",state="WAITING",mach-port-number="0x1703",pthread-id="0x101581000",unique-id="0x178ab",workqueue="com.apple.libdispatch-manager",workqueue_addr="0x7fff7114d960"},thread={thread-id="1",state="WAITING",mach-port-number="0xa0f",pthread-id="0x7fff7115bcc0",unique-id="0x178a3",workqueue="com.apple.main-thread",workqueue_addr="0x7fff7114d8a0"}},time={wallclock="0.00108",user="0.00042",system="0.00066",start="1309468759.795901",end="1309468759.796983"}
- >29^done,time={wallclock="0.00014",user="0.00013",system="0.00001",start="1309468759.851471",end="1309468759.851609"}
- >30^done,stack-args={frame={level="0",args={varobj={exp="this",value="0x7fff5fbff740",name="var1",numchild="2",type="MainWindow * const",typecode="PTR",dynamic_type="MainWindow *",resolved_type="MainWindow *",in_scope="true",block_start_addr="0x0000000100002804",block_end_addr="0x0000000100002c37"},varobj={exp="obj",value="0x102e18780",name="var2",numchild="2",type="QObject *",typecode="PTR",dynamic_type="KPix *",resolved_type="QObject *",in_scope="true",block_start_addr="0x0000000100002804",block_end_addr="0x0000000100002c37"},varobj={exp="indentLevel",value="0",name="var3",numchild="0",type="int",typecode="INT",dynamic_type="",resolved_type="int",in_scope="true",block_start_addr="0x0000000100002804",block_end_addr="0x0000000100002c37"}}}},time={wallclock="0.00166",user="0.00105",system="0.00060",start="1309468759.851789",end="1309468759.853444"}
- >31^done,locals={varobj={exp="wobj",value="0x102e18780",name="var4",numchild="2",type="QWidget *",typecode="PTR",dynamic_type="KPix *",resolved_type="QWidget *",in_scope="true",block_start_addr="0x0000000100002877",block_end_addr="0x0000000100002933"},varobj={exp="x",value="1",name="var5",numchild="0",type="int",typecode="INT",dynamic_type="",resolved_type="int",in_scope="true",block_start_addr="0x0000000100002804",block_end_addr="0x0000000100002c37"},varobj={exp="typeString",value="{...}",name="var6",numchild="1",type="QString",typecode="STRUCT",dynamic_type="",resolved_type="QString",in_scope="true",block_start_addr="0x0000000100002804",block_end_addr="0x0000000100002c37"},varobj={exp="indentString",value="{...}",name="var7",numchild="1",type="QString",typecode="STRUCT",dynamic_type="",resolved_type="QString",in_scope="true",block_start_addr="0x0000000100002804",block_end_addr="0x0000000100002c37"},varobj={exp="sizeStr",value="{...}",name="var8",numchild="1",type="QString",typecode="STRUCT",dynamic_type="",resolved_type="QString",in_scope="true",block_start_addr="0x0000000100002804",block_end_addr="0x0000000100002c37"},varobj={exp="childrenList",value="{...}",name="var9",numchild="1",type="QObjectList",typecode="STRUCT",dynamic_type="",resolved_type="QList<QObject*>",in_scope="true",block_start_addr="0x0000000100002804",block_end_addr="0x0000000100002c37"}},time={wallclock="0.00161",user="0.00132",system="0.00029",start="1309468759.853542",end="1309468759.855156"}
You must log in to post a reply. Not a member yet? Register here!



