QML debugging in visual studio

202 Views Asked by At

enter image description hereI use visual studio to build and run my Qt based application. I can keep breakpoints in my c++ files but QML no way I am able to keep breakpoints. The way I debug QML is keeping console.log() statment.

From internet I saw extention "QT VS tools" but dont know how to use it.

  1. DO I need to create pro file to do debug even if I can build QT based project
  2. I am using VC2019, do I need to upgrade Vs

Please provide some info

1

There are 1 best solutions below

4
Dmitry Sazonov On
  1. No
  2. No (but I recommend to do it)

You can follow official guide to configure debugging.