A windows version inspired by this lovely gist: https://gist.github.com/AsgerPetersen/9ea79ae4139f4977c31dd6ede2297f90
In QGIS install the plugin debugvs.
The debugvs plugin needs the python module ptvsd to function. This module is not installed by default.