Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-117204

using debug_script ends in type error

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P2: Important
    • 6.7.0 FF
    • 6.4.3
    • Core: Other
    • None
    • macOS
    • 9965630aa (dev)

    Description

      Enabling the debug_script embedded inside Qt frameworks ends in a

      ERROR: Lldb stderr: Traceback (most recent call last):                                              
        File "/Users/chris/Qt/6.4.3/macos/lib/QtCore.framework.dSYM/Contents/Resources/Python/QtCore.py", line 64, in __lldb_init_module
      ERROR: Lldb stderr:     for version in sorted(versions, key=LooseVersion, reverse=True):            
        File "/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/distutils/version.py", line 52, in __lt__
      ERROR: Lldb stderr:     c = self._cmp(other)                                                        
        File "/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/distutils/version.py", line 337, in _cmp
      ERROR: Lldb stderr:     if self.version < other.version:                                            
      TypeError: '<' not supported between instances of 'str' and 'int'  

       

      Steps to reproduce:

      • use QC to debug a small app using Qt
      • have DebugLog view open while debugging
      • you can either enable this on the fly inside the DebugLog view (left side has a "Command" line edit)
        OR
      • enable this before starting the debugger by using the Preferences > Debugger > GDB (left column, bottom has "Additional Startup Commands") - ignore that it states "GDB" - this applies for LLDB as well

      either inside the "command" line edit or the startup commands you can enter

       settings set target.load-script-from-symbol-file true 

      Attachments

        Issue Links

          For Gerrit Dashboard: QTBUG-117204
          # Subject Branch Project Status CR V

          Activity

            People

              vestbo Tor Arne Vestbø
              cstenger Christian Stenger
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes