Uploaded image for project: 'Qt Creator'
  1. Qt Creator
  2. QTCREATORBUG-20046

second value of argv not displayed anymore after step

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Invalid
    • Icon: Not Evaluated Not Evaluated
    • None
    • Qt Creator 4.6.0-rc1
    • Debugger
    • Windows 10 1709 64 bit
      MSVC2015 64 bit
      cdb 10.0
      Qt 5.10.1 64 bit

      1. Create a new project of type "Qt Quick Application - Empty".
      2. Place a breakpoint in line 8 of main.cpp:
        QGuiApplication app(argc, argv);
        
      3. Start the debugger.
        The breakpoint will be hit.
      4. Check argv in the Locals view.
        The array contains to elements:
        argv	<2 Elemente>	char **
        	[0]	"D:\Testprojekte\build-untitled1008-Desktop-Debug\debug\untitled1008.exe"	char*
        	[1]	"-qmljsdebugger=port:56093,block,services:DebugMessages,QmlDebugger,V8Debugger,QmlInspector"	char*
        
      5. Step forward.
      6. Check argv in the Locals view again.
        Now the debugger claims that the array has only one element:
        argv	<ein Element>	char **
        	[0]	"D:\Testprojekte\build-untitled1008-Desktop-Debug\debug\untitled1008.exe"	char*
        

      Looking at Creator's memory viewer, the array itself seems to not have changed, so I wouldn't expect the Locals view to change the display of argv.

        1. right.log
          22 kB
        2. left.log
          2 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            davschul David Schulz
            rlohning Robert Löhning
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes