Is it possible to see scripts running in Python Console - everything from tools and analysis vector to raster?
-
2The console it is the same thing as a classic Python shell.gene– gene2015年12月22日 16:37:49 +00:00Commented Dec 22, 2015 at 16:37
-
1If it's just to tell you where you are within your script: add a few "prints" within your codeFitzroy Hogsflesh– Fitzroy Hogsflesh2016年10月05日 09:03:26 +00:00Commented Oct 5, 2016 at 9:03
3 Answers 3
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).
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– mgri2017年04月03日 14:25:53 +00:00Commented Apr 3, 2017 at 14:25
Pythontutor.com does this very well.