Uploaded image for project: 'Qt Visual Studio Tools'
  1. Qt Visual Studio Tools
  2. QTVSADDINBUG-755

Debugging a qml file requires a matching resource file

    XMLWordPrintable

    Details

    • Commits:
      7fdf9e7cf0f4a8098a8159269e2f864a45331733

      Description

      Debugging a .qml file in VS does not work unless there's a resource file with the same name added to the project. This seems to occur when the loaded .qml file is either a local file or compiled into a shared library.

      If there's no resource file added with the same name breakpoints will not be hit.

      Steps to reproduce:

      1. Open the attached project in VS
      2. Set a breakpoint in the resource file main.qml
      3. Debug (breakpoint will be hit)
      4. Remove the qml.qrc from the project
      5. Set a breakpoint in local main.qml
      6. Debug (breakpoint will not be hit)

      Note: the local main.qml and the one added as a resource file are different files. The resource file is never loaded but it is required to debug the local qml.

        Attachments

        For Gerrit Dashboard: QTVSADDINBUG-755
        # Subject Branch Project Status CR V

          Activity

            People

            Assignee:
            mecfc Miguel Costa
            Reporter:
            miikapernu Miika Pernu
            Votes:
            2 Vote for this issue
            Watchers:
            7 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes