Details
-
Bug
-
Resolution: Fixed
-
P1: Critical
-
None
-
2.9.1 (rev.06)
-
Windows 10 Pro 22H2 x64, Visual Studio 2019 v16.11.19
-
e3468b8a6 (dev), 2f26a9f94 (dev)
Description
Steps to reproduce
- In Visual Studio, create a new "Qt Quick Application". Just accept the defaults presented by the "Qt Quick Application Wizard".
- Press F5 to debug the application (C++ only).
- Close the application window.
- Select "Extensions" > "Qt VS Tools" > "Qt Project Settings" and set "QML" > "Enable QML Debugging" to "Yes".
- Press F5 to debug the application (C++ and QML).
Outcomes
- At the end of Step #2, the Hello World window appears. We can interact with it as expected (e.g. resize it and close it)
- At the end of Step #5, no window appears. The Output pane gets stuck at the following:
'QtQuickApplication1.exe' (Win32): Loaded 'C:\Qt\Online\6.4.1\msvc2019_64\plugins\qmltooling\qmldbg_serverd.dll'. 'QtQuickApplication1.exe' (Win32): Loaded 'C:\Qt\Online\6.4.1\msvc2019_64\plugins\qmltooling\qmldbg_debuggerd.dll'. 'QtQuickApplication1.exe' (Win32): Loaded 'C:\Qt\Online\6.4.1\msvc2019_64\plugins\qmltooling\qmldbg_inspectord.dll'. 'QtQuickApplication1.exe' (Win32): Loaded 'C:\Qt\Online\6.4.1\msvc2019_64\bin\Qt6Quickd.dll'. 'QtQuickApplication1.exe' (Win32): Loaded 'C:\Qt\Online\6.4.1\msvc2019_64\bin\Qt6OpenGLd.dll'. 'QtQuickApplication1.exe' (Win32): Loaded 'C:\Qt\Online\6.4.1\msvc2019_64\bin\Qt6QmlModelsd.dll'. 'QtQuickApplication1.exe' (Win32): Loaded 'C:\Qt\Online\6.4.1\msvc2019_64\plugins\qmltooling\qmldbg_messagesd.dll'. 'QtQuickApplication1.exe' (Win32): Loaded 'C:\Qt\Online\6.4.1\msvc2019_64\plugins\qmltooling\qmldbg_nativedebuggerd.dll'. 'QtQuickApplication1.exe' (Win32): Loaded 'C:\Qt\Online\6.4.1\msvc2019_64\plugins\qmltooling\qmldbg_previewd.dll'. 'QtQuickApplication1.exe' (Win32): Loaded 'C:\Qt\Online\6.4.1\msvc2019_64\plugins\qmltooling\qmldbg_profilerd.dll'. 'QtQuickApplication1.exe' (Win32): Loaded 'C:\Qt\Online\6.4.1\msvc2019_64\plugins\qmltooling\qmldbg_quickprofilerd.dll'. 'QtQuickApplication1.exe' (Win32): Loaded 'C:\Qt\Online\6.4.1\msvc2019_64\plugins\qmltooling\qmldbg_quick3dprofilerd.dll'. 'QtQuickApplication1.exe' (Win32): Loaded 'C:\Qt\Online\6.4.1\msvc2019_64\bin\Qt6Quick3DUtilsd.dll'. 'QtQuickApplication1.exe' (Win32): Loaded 'C:\Qt\Online\6.4.1\msvc2019_64\plugins\qmltooling\qmldbg_locald.dll'. QML Debugger: Connecting to socket {F17BA137-11AC-42A3-87D9-13656B990A23}...
Notes
- Tested with both Qt 6.4.1 and 5.15.2
- I was following leenam's latest instructions at https://codereview.qt-project.org/c/qt-labs/vstools/+/447111
- If a breakpoint was added in a main.qml, it gets flagged with "The breakpoint will not currently be hit. No symbols have been loaded for this document."
Attachments
Issue Links
- is duplicated by
-
QTVSADDINBUG-1031 Visual Studio 2022 + QtVSAddin : Start application with "Start Without Debugging (Ctrl+F5)" but application window does not appear.
- Closed
- relates to
-
QTVSADDINBUG-1070 Add tutorial for debugging QML applications
- Closed