PyCharm can view historical running results to facilitate tracking code execution: Open the Run tool window ("Ctrl Alt E"/"Cmd Option E"). Select the "Run History" tab. Double-click the entry to view the output and exception. Run results can be exported to text or HTML files.
How to view historical running results in PyCharm
PyCharm provides the function of viewing historical running results to facilitate development People track code execution.
Steps:
-
Open the Run tool window: Use the shortcut key "Ctrl Alt E" (Windows/Linux) or "Cmd Option E" (macOS) opens the Run tool window.
-
View Run History: At the top of the Run tool window, select the "Run History" tab.
-
Browse run results: This tab displays a list of all recently run code snippets and unit tests.
-
View the results of a specific run: Double-click a specific entry in the history to view its output and exceptions (if any).
-
Export running results: If necessary, the running results can be exported to text file or HTML format.
Extra Tip:
- PyCharm also allows you to save run results as a file and reload them later.
- The length of the history record can be configured in "Settings/Preferences | Tools | Python Integrated Tools | Run".
- For unit testing, PyCharm provides a more comprehensive test runner that includes detailed test results and coverage reports.
The above is the detailed content of How to view historical running results in pycharm. For more information, please follow other related articles on the PHP Chinese website!