Results 1 to 4 of 4

Thread: dont step into Qt source - Visual Studio

  1. #1
    Join Date
    Jul 2012
    Posts
    244
    Thanks
    27
    Thanked 15 Times in 14 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default dont step into Qt source - Visual Studio

    Hi,

    I am running Qt 484 and VS2008 with the qt visual studio addon 1111. Everything works fine, but often i accidentally step into Qt source code. I dont want to do that.
    Here:

    http://blogs.msdn.com/b/andypennell/.../06/69004.aspx

    is a nice description of how to exclude certain namespaces/functions/we from being stepped into. In fact, i use exactly this to filter stepping into c++ stl source code:

    Qt Code:
    1. std\:\:.*=NoStepInto
    To copy to clipboard, switch view to plain text mode 

    works fine.
    I understand all Qt functionality is wrapped in the QT_NAMESPACE, implemented by the macro QT_BEGIN_NAMESPACE.
    Unfortunately,

    Qt Code:
    1. QT_NAMESPACE\:\:.*=NoStepInto
    To copy to clipboard, switch view to plain text mode 

    does NOT work.

    Any ideas why not and how to do this?

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,360
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: dont step into Qt source - Visual Studio

    QT_NAMESPACE is empty by default thus it will not work. You'd need to rebuild Qt.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  3. #3
    Join Date
    Jul 2012
    Posts
    244
    Thanks
    27
    Thanked 15 Times in 14 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: dont step into Qt source - Visual Studio

    ok.
    assuming i rebuild Qt with the switch to set the namespace to MyQtNs::, and i would emit a "using namespace MyQtNs" after every #include<Qtxxx>, would that work just like it does now?
    Or is there anything else i have to consider?

    Any other ways of not stepping into Qt Source code?

    btw, when i hit "f10" (vs: step over) on my project, i end up in some shady qWinMain() or something, and hit my "int main(){...}" only later on. Previously i would start at my main() right away. Has something changed there?

  4. #4
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,360
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: dont step into Qt source - Visual Studio

    Quote Originally Posted by tuli View Post
    Any other ways of not stepping into Qt Source code?
    Well... there is one -- get rid of Qt sources. This way there is no way for your debugger to go into them.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


Similar Threads

  1. Replies: 1
    Last Post: 10th March 2011, 14:40
  2. Visual Studio Plugin (1.1.6) crashes Visual Studio (2010)
    By mboeni in forum Installation and Deployment
    Replies: 0
    Last Post: 11th October 2010, 16:46
  3. How to Qt4.7 Source with Visual Studio 2010
    By Aenima1981 in forum Installation and Deployment
    Replies: 0
    Last Post: 1st October 2010, 14:00
  4. qt visual studio add-in source code
    By GreenScape in forum General Programming
    Replies: 2
    Last Post: 3rd August 2010, 11:50
  5. Replies: 17
    Last Post: 3rd July 2008, 00:48

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.