7

Is it possible to see scripts running in Python Console - everything from tools and analysis vector to raster?

  • 2
    The console it is the same thing as a classic Python shell. – gene Dec 22 '15 at 16:37
  • 1
    If it's just to tell you where you are within your script: add a few "prints" within your code – Fitzroy Hogsflesh Oct 5 '16 at 9:03
1

You should be able to run your python code from an IDE (for example Wing IDE) as long as your python path and QGIS libraries are properly set up. An IDE will allow you to set breakpoints where the code pauses until you tell the IDE to continue the parsing. You will also be able to monitor variables in separate windows.

The below screenshot is from QGIS code run in Wing IDE. Note the breakpoint (red dot).

enter image description here

0

Pythontutor.com does this very well.

0

Have you already tried pydev? PyDev is a Python IDE for Eclipse, which may be used in Python development.

in Qgis Developer Cookbook search for "IDE settings for writing and debugging plugins" http://docs.qgis.org/testing/en/docs/pyqgis_developer_cookbook/ide_debugging.html

  • Link-only answers can become invalid if the linked page changes. So, please try to add more explanation to your answer for helping the user to understand what you want to communicate. – mgri Apr 3 '17 at 14:25

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.