7

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

asked Dec 22, 2015 at 16:14
2
  • 2
    The console it is the same thing as a classic Python shell. 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

answered Mar 4, 2017 at 20:02
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

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

Pythontutor.com does this very well.

answered Apr 3, 2017 at 13:38
0

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.