Re: [Qt-creator] Stepping into Qt code on OS X? - Picture 2.png (1/1)
I still can not step into Qt source code on OS X. Any hit? Or do I need to build from Qt source files? I don't have to do that with Windows binary download. In article stephen-e24424.10450916022...@nntp.trolltech.com, Stephen Chu step...@ju-ju.com wrote: In article 127a4169-65de-43fe-b14f-1a1b0b3d8...@nokia.com, Eike Ziller eike.zil...@nokia.com wrote: On Feb 16, 2010, at 3:34 PM, ext Stephen Chu wrote: In article hlc1e1$eb...@eple.troll.no, Stephen Chu step...@ju-ju.com wrote: On 2/15/2010 6:15 AM, Eike Ziller wrote: Hi, On Feb 12, 2010, at 5:36 PM, ext Stephen Chu wrote: I am using 4.6 Qt SDK for Mac. I find that I can not step into Qt source code like I can on Windows. Does the Qt libs in SDK download not include debug information? Or I just didn't configure it right? The Qt binary distribution contains both debug and release variants of the libraries. But you have to explicitly tell the runtime linker that you want to use the debug libs - using release libs is the default, even if your application is compiled as debug. If you use a qmake / pro-file based project in Qt Creator you can set a flag in your run configuration, in Projects mode, in the run configuration select Use debug version of frameworks. For more detailed information about debugging on the Mac, the corresponding Apple documentation page is an interesting read: http://developer.apple.com/mac/library/technotes/tn2004/tn2124.html Please also note that Mac OS X Snow Leopard (10.6) has a bug, that can be worked around like described here: http://bugreports.qt.nokia.com/browse/QTBUG-4962 Thanks for the help. I will try that once I have access to my Mac at work on Tuesday. Any plan on making this automatic? OK. That doesn't work. The attached screenshot was taken with a project with Use debug version of frameworks (DYLD_IMAGE_SUFFIC=_debug) and the latest Creator 1.3.8 snapshot. Sorry, I can't see your screenshot, it's attached as text. ++ Eike Sorry. Forgot I was posting via NNTP. Here's the screen capture: http://farm5.static.flickr.com/4002/4362798640_95cc2e0e2f_o.png -- Stephen Chu ___ Qt-creator mailing list Qt-creator@trolltech.com http://lists.trolltech.com/mailman/listinfo/qt-creator
Re: [Qt-creator] Stepping into Qt code on OS X? - Picture 2.png (1/1)
On Feb 22, 2010, at 5:15 PM, ext Stephen Chu wrote: I still can not step into Qt source code on OS X. Any hit? Or do I need to build from Qt source files? I don't have to do that with Windows binary download. Ah, sorry, the problem is: The binary distribution of Qt on the Mac doesn't come with source code at all, so obviously you can't step into it :) So yes, the easiest solution is to build Qt yourself. This way the binaries are automagically connected to the sources, for gdb. Though there might be a way to tell gdb to look for the sources at a specific place (in this way using the binaries from the binary distribution, but the sources from a source download), but I fail to come up with the right lines, right now. ++ Eike In article stephen-e24424.10450916022...@nntp.trolltech.com, Stephen Chu step...@ju-ju.com wrote: In article 127a4169-65de-43fe-b14f-1a1b0b3d8...@nokia.com, Eike Ziller eike.zil...@nokia.com wrote: On Feb 16, 2010, at 3:34 PM, ext Stephen Chu wrote: In article hlc1e1$eb...@eple.troll.no, Stephen Chu step...@ju-ju.com wrote: On 2/15/2010 6:15 AM, Eike Ziller wrote: Hi, On Feb 12, 2010, at 5:36 PM, ext Stephen Chu wrote: I am using 4.6 Qt SDK for Mac. I find that I can not step into Qt source code like I can on Windows. Does the Qt libs in SDK download not include debug information? Or I just didn't configure it right? The Qt binary distribution contains both debug and release variants of the libraries. But you have to explicitly tell the runtime linker that you want to use the debug libs - using release libs is the default, even if your application is compiled as debug. If you use a qmake / pro-file based project in Qt Creator you can set a flag in your run configuration, in Projects mode, in the run configuration select Use debug version of frameworks. For more detailed information about debugging on the Mac, the corresponding Apple documentation page is an interesting read: http://developer.apple.com/mac/library/technotes/tn2004/tn2124.html Please also note that Mac OS X Snow Leopard (10.6) has a bug, that can be worked around like described here: http://bugreports.qt.nokia.com/browse/QTBUG-4962 Thanks for the help. I will try that once I have access to my Mac at work on Tuesday. Any plan on making this automatic? OK. That doesn't work. The attached screenshot was taken with a project with Use debug version of frameworks (DYLD_IMAGE_SUFFIC=_debug) and the latest Creator 1.3.8 snapshot. Sorry, I can't see your screenshot, it's attached as text. ++ Eike Sorry. Forgot I was posting via NNTP. Here's the screen capture: http://farm5.static.flickr.com/4002/4362798640_95cc2e0e2f_o.png -- Stephen Chu ___ Qt-creator mailing list Qt-creator@trolltech.com http://lists.trolltech.com/mailman/listinfo/qt-creator -- Eike Ziller Software Engineer Nokia, Qt Development Frameworks Nokia gate5 GmbH Firmensitz: Invalidenstr. 117, 10115 Berlin, Germany Registergericht: Amtsgericht Charlottenburg, Berlin: HRB 106443 B Umsatzsteueridentifikationsnummer: DE 812 845 193 Geschäftsführer: Dr. Michael Halbherr, Karim Tähtivuori ___ Qt-creator mailing list Qt-creator@trolltech.com http://lists.trolltech.com/mailman/listinfo/qt-creator
Re: [Qt-creator] Stepping into Qt code on OS X? - Picture 2.png (1/1)
On Feb 16, 2010, at 3:34 PM, ext Stephen Chu wrote: In article hlc1e1$eb...@eple.troll.no, Stephen Chu step...@ju-ju.com wrote: On 2/15/2010 6:15 AM, Eike Ziller wrote: Hi, On Feb 12, 2010, at 5:36 PM, ext Stephen Chu wrote: I am using 4.6 Qt SDK for Mac. I find that I can not step into Qt source code like I can on Windows. Does the Qt libs in SDK download not include debug information? Or I just didn't configure it right? The Qt binary distribution contains both debug and release variants of the libraries. But you have to explicitly tell the runtime linker that you want to use the debug libs - using release libs is the default, even if your application is compiled as debug. If you use a qmake / pro-file based project in Qt Creator you can set a flag in your run configuration, in Projects mode, in the run configuration select Use debug version of frameworks. For more detailed information about debugging on the Mac, the corresponding Apple documentation page is an interesting read: http://developer.apple.com/mac/library/technotes/tn2004/tn2124.html Please also note that Mac OS X Snow Leopard (10.6) has a bug, that can be worked around like described here: http://bugreports.qt.nokia.com/browse/QTBUG-4962 Thanks for the help. I will try that once I have access to my Mac at work on Tuesday. Any plan on making this automatic? OK. That doesn't work. The attached screenshot was taken with a project with Use debug version of frameworks (DYLD_IMAGE_SUFFIC=_debug) and the latest Creator 1.3.8 snapshot. Sorry, I can't see your screenshot, it's attached as text. ++ Eike -- Stephen Chu begin 644 Picture 2.png MB5!.1PT*@h-24...@```s```$Y`(B)DG4```/E#0U!)0T,@ M4')O9FEL90```MDT]H$T$4QK]M!%NL/9...@ayrb8RC;U((B0)FTEMDU# [...] M\_A(],NM*KBG3H*0?Z+DP/KFWT\X0($`8(`...@0!`@!`$S(`Y0C^A'B M]^_.H:5[3';FF2,?(I,@0!`@!`$`($`8(`0`...@-#0tj?bd^j).K3LDO m...@0!`@!`$`($`8)`...@*956%3EY)7+VDP%DC%!@!`$`($`0(`...@0! m...@h`!`i8]_8s7?[j91t...@0p@$`8(`...@0!`@!...@x!3f6ea?'HVE M!:0W!+2=*B1G@@!!@!`$`($`0(`...@0!-0(.SNR6D-!CD@!`$`($`8(` m...@t%x0('L/M!=+$#T(`...@0!@@!!@!`$`(:-`O#1M-,@q...@0!`@!`$ M`($...@?:`/'2VHLEB!X$`8(`...@0!`@!`$M!'x?...@pohd%g:`$E% 3D2N0F ` end -- Eike Ziller Software Engineer Nokia, Qt Development Frameworks Nokia gate5 GmbH Firmensitz: Invalidenstr. 117, 10115 Berlin, Germany Registergericht: Amtsgericht Charlottenburg, Berlin: HRB 106443 B Umsatzsteueridentifikationsnummer: DE 812 845 193 Geschäftsführer: Dr. Michael Halbherr, Karim Tähtivuori ___ Qt-creator mailing list Qt-creator@trolltech.com http://lists.trolltech.com/mailman/listinfo/qt-creator
Re: [Qt-creator] Stepping into Qt code on OS X? - Picture 2.png (1/1)
Screenshot works for me. It just shows a disassembly of QWidget::layout (qwidget.cpp:9350) with the stack frame drawn in gray instead of black. On Tue, Feb 16, 2010 at 9:19 AM, Eike Ziller eike.zil...@nokia.com wrote: On Feb 16, 2010, at 3:34 PM, ext Stephen Chu wrote: In article hlc1e1$eb...@eple.troll.no, Stephen Chu step...@ju-ju.com wrote: On 2/15/2010 6:15 AM, Eike Ziller wrote: Hi, On Feb 12, 2010, at 5:36 PM, ext Stephen Chu wrote: I am using 4.6 Qt SDK for Mac. I find that I can not step into Qt source code like I can on Windows. Does the Qt libs in SDK download not include debug information? Or I just didn't configure it right? The Qt binary distribution contains both debug and release variants of the libraries. But you have to explicitly tell the runtime linker that you want to use the debug libs - using release libs is the default, even if your application is compiled as debug. If you use a qmake / pro-file based project in Qt Creator you can set a flag in your run configuration, in Projects mode, in the run configuration select Use debug version of frameworks. For more detailed information about debugging on the Mac, the corresponding Apple documentation page is an interesting read: http://developer.apple.com/mac/library/technotes/tn2004/tn2124.html Please also note that Mac OS X Snow Leopard (10.6) has a bug, that can be worked around like described here: http://bugreports.qt.nokia.com/browse/QTBUG-4962 Thanks for the help. I will try that once I have access to my Mac at work on Tuesday. Any plan on making this automatic? OK. That doesn't work. The attached screenshot was taken with a project with Use debug version of frameworks (DYLD_IMAGE_SUFFIC=_debug) and the latest Creator 1.3.8 snapshot. Sorry, I can't see your screenshot, it's attached as text. ++ Eike -- Stephen Chu begin 644 Picture 2.png MB5!.1PT*@h-24...@```s```$Y`(B)DG4```/E#0U!)0T,@ M4')O9FEL90```MDT]H$T$4QK]M!%NL/9...@ayrb8RC;U((B0)FTEMDU# [...] M\_A(],NM*KBG3H*0?Z+DP/KFWT\X0($`8(`...@0!`@!`$S(`Y0C^A'B M]^_.H:5[3';FF2,?(I,@0!`@!`$`($`8(`0`...@-#0tj?bd^j).K3LDO m...@0!`@!`$`($`8)`...@*956%3EY)7+VDP%DC%!@!`$`($`0(`...@0! m...@h`!`i8]_8s7?[j91t...@0p@$`8(`...@0!`@!...@x!3f6ea?'HVE M!:0W!+2=*B1G@@!!@!`$`($`0(`...@0!-0(.SNR6D-!CD@!`$`($`8(` m...@t%x0('L/M!=+$#T(`...@0!@@!!@!`$`(:-`O#1M-,@q...@0!`@!`$ M`($...@?:`/'2VHLEB!X$`8(`...@0!`@!`$M!'x?...@pohd%g:`$E% 3D2N0F ` end -- Eike Ziller Software Engineer Nokia, Qt Development Frameworks Nokia gate5 GmbH Firmensitz: Invalidenstr. 117, 10115 Berlin, Germany Registergericht: Amtsgericht Charlottenburg, Berlin: HRB 106443 B Umsatzsteueridentifikationsnummer: DE 812 845 193 Geschäftsführer: Dr. Michael Halbherr, Karim Tähtivuori ___ Qt-creator mailing list Qt-creator@trolltech.com http://lists.trolltech.com/mailman/listinfo/qt-creator ___ Qt-creator mailing list Qt-creator@trolltech.com http://lists.trolltech.com/mailman/listinfo/qt-creator
Re: [Qt-creator] Stepping into Qt code on OS X? - Picture 2.png (1/1)
In article 127a4169-65de-43fe-b14f-1a1b0b3d8...@nokia.com, Eike Ziller eike.zil...@nokia.com wrote: On Feb 16, 2010, at 3:34 PM, ext Stephen Chu wrote: In article hlc1e1$eb...@eple.troll.no, Stephen Chu step...@ju-ju.com wrote: On 2/15/2010 6:15 AM, Eike Ziller wrote: Hi, On Feb 12, 2010, at 5:36 PM, ext Stephen Chu wrote: I am using 4.6 Qt SDK for Mac. I find that I can not step into Qt source code like I can on Windows. Does the Qt libs in SDK download not include debug information? Or I just didn't configure it right? The Qt binary distribution contains both debug and release variants of the libraries. But you have to explicitly tell the runtime linker that you want to use the debug libs - using release libs is the default, even if your application is compiled as debug. If you use a qmake / pro-file based project in Qt Creator you can set a flag in your run configuration, in Projects mode, in the run configuration select Use debug version of frameworks. For more detailed information about debugging on the Mac, the corresponding Apple documentation page is an interesting read: http://developer.apple.com/mac/library/technotes/tn2004/tn2124.html Please also note that Mac OS X Snow Leopard (10.6) has a bug, that can be worked around like described here: http://bugreports.qt.nokia.com/browse/QTBUG-4962 Thanks for the help. I will try that once I have access to my Mac at work on Tuesday. Any plan on making this automatic? OK. That doesn't work. The attached screenshot was taken with a project with Use debug version of frameworks (DYLD_IMAGE_SUFFIC=_debug) and the latest Creator 1.3.8 snapshot. Sorry, I can't see your screenshot, it's attached as text. ++ Eike Sorry. Forgot I was posting via NNTP. Here's the screen capture: http://farm5.static.flickr.com/4002/4362798640_95cc2e0e2f_o.png -- Stephen Chu ___ Qt-creator mailing list Qt-creator@trolltech.com http://lists.trolltech.com/mailman/listinfo/qt-creator