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.
What happens?
asked Jan 15, 2019 at 15:55
1 Answer 1
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"
answered Jan 15, 2019 at 16:58
-
Using print can crash a multithreaded Qt application like QGIS and should be avoided. Use QGIS' logging functions instead.bugmenot123– bugmenot1232021年07月13日 12:36:48 +00:00Commented Jul 13, 2021 at 12:36
lang-py