I am developing a plugin in QGIS 3.4 and usually I debug with QMessageBox. Everything is running ok until I debug a list and the result was this one.

enter image description here

What happens?


The image I am seeing doesn't have any text. Is that expected? What if you try to debug using a python print function. The output should appear in the python console in Qgis. To open the python console in Qgis go to the Plugins menu and click Python Console.

print some_variable
print "some message"
  • Using print can crash a multithreaded Qt application like QGIS and should be avoided. Use QGIS' logging functions instead. Jul 13 at 12:36

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.