0

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?

PolyGeo
65.5k29 gold badges115 silver badges350 bronze badges
asked Jan 15, 2019 at 15:55

1 Answer 1

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
1
  • Using print can crash a multithreaded Qt application like QGIS and should be avoided. Use QGIS' logging functions instead. Commented Jul 13, 2021 at 12:36

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.