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

      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

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

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

              Dates

              Created:
              Updated:

                Gerrit Reviews

                There are no open Gerrit changes