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

    • 7fdf9e7cf0f4a8098a8159269e2f864a45331733

      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.

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

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes