7

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

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

3 Answers 3

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

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

1
  • 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
    Commented Apr 3, 2017 at 14:25
-1

Pythontutor.com does this very well.

0

Your Answer

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

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