简体   繁体   English

有没有更好的方法从引用它的 python 堆栈跟踪获取文件?

[英]Is there a better way to get to the file from a python stack trace referencing it?

From a Python stack trace in either Output or Terminal, how to go to the file, or even better, the line where the error was raised?从 Output 或终端中的 Python 堆栈跟踪,如何将 go 到文件,甚至更好,是引发错误的行? Ctrl-click doesn't respond.按住 Ctrl 键单击没有响应。 I have been doing ctrl-e and type the file name, but is there a faster way?我一直在按 ctrl-e 并输入文件名,但有没有更快的方法?

Using ctrl+click in the terminal can go directly to the error line of the error file.在终端中使用ctrl+click可以go直接到错误文件的错误行。

在此处输入图像描述

If you need to achieve the same effect in the OUTPUT panel you can submit a feature request on GitHub.如果您需要在OUTPUT面板中实现相同的效果,您可以在 GitHub 上提交功能请求。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM