[英]What does 'File "<string>"' stands for on python debugger and traceback?
Eventually, when I am in a debug session, the current file is named "<string>".最终,当我在调试会话中时,当前文件被命名为“<string>”。 What I would expect to see is the name of the module where the debugger is currently on.
我希望看到的是调试器当前所在模块的名称。
The same happens on the traceback:回溯上也会发生同样的情况:
Traceback (most recent call last):
...
File "~/project_x/app/services/contacts.py", line 23, in find_account
account = self._account_repo.get_by_id(id)
File "<string>", line 2, in get_by_id
File "~/project_x/lib/python3.7/site-packages/pony/orm/core.py", li
ne 528, in new_func
result = func(*args, **kwargs)
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.