In developing a PyQGIS plugin, I would like to be able to print out variable values to ensure that my program has the desired functionality. I am aware that I can print messages with something like QgsMessageLog.logMessage("hello"), but this does not work for variable values.

  • 1
    Print directly to Python Console. – xunilk Jul 1 at 13:16

Just use the native Python print e.g print(your_variable)

| improve this answer | |

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.