简体   繁体   English

像DebuggerDisplay for Python一样?

[英]Something like DebuggerDisplay for Python?

Related to this question , is there any way to get the same functionality of DebuggerDisplay attribute for Python? 此问题相关,是否有任何方法可以为Python获取DebuggerDisplay属性的相同功能? This is my intended code to write: 这是我要编写的代码:

from collections import namedtuple
[DebuggerDisplay("{val}, {dir}")]
Value = namedtuple('Value', ('val', 'dir'))

I know DebuggerDisplay is a .NET thing. 我知道DebuggerDisplay是.NET。 I was just hoping that there was something similar for Python in VS 我只是希望VS中的Python有类似的东西

Have you tried use PyCharm ? 您是否尝试过使用PyCharm It has debugger similar to Visual Studio 它具有类似于Visual Studio的调试器

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

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