Details
-
Type:
Bug
-
Status: Closed
-
Priority:
Not Evaluated
-
Resolution: Done
-
Affects Version/s: Qt Creator 4.10.0
-
Fix Version/s: Qt Creator 4.10.1, Qt Creator 4.11.0-beta1
-
Component/s: Debugger
-
Labels:None
-
Environment:iMac Pro (2017) running macOS Mojave (10.14.6); QtCreator 4.10.0
-
Platform/s:
-
Commits:54e3d06c5e175d86c634b67a0504af6b1e78374f (qt-creator/qt-creator/4.10)
Description
I recently upgraded from QtCreator 4.9.1 to QtCreator 4.10.0. When debugging the attached test code from within QtCreator 4.10.0, argc = 2 and argv[1] = "". But when simply running the program, argc = 1.
As a side-effect of the program receiving an empty argv argument, QCommandLineParser's positionalArguments method adds an empty string to the returned list.
The attached test code will write "arg: " to the console in a debug session, but write no output when run normally.