简体   繁体   English

更好的JavaScript / Typescript调试器可视化工具

[英]Better debugger visualizer for JavaScript/Typescript

When debugging C# code with visual studio and hovering over a variable the following popup is shown. 当使用Visual Studio调试C#代码并将鼠标悬停在变量上时,将显示以下弹出窗口。 I can directly see that the type of myGreeter is ConsoleApplication2.Greeter . 我可以直接看到myGreeter的类型是ConsoleApplication2.Greeter

C#调试器可视化器

When debugging TypeScript/JavaScript code there is only displayed {...} which means that the variable is a JavaScript object: 调试TypeScript / JavaScript代码时,仅显示{...} ,这表示该变量是JavaScript对象:

JavaScript调试器可视化器

Can I somehow tell visual studio to show obj.constructor.name instead of just {...} ? 我可以以某种方式告诉Visual Studio显示obj.constructor.name而不是仅仅显示{...}吗?

EDIT 编辑

I have just seen that the Watch window does show the type: 我刚刚看到“监视”窗口确实显示了类型:

观察窗

Can I show the type column also when hovering over a variable in code? 将鼠标悬停在代码中的变量上时,也可以显示类型列吗?

您可能无法在Visual Studio 2013上做更多的事情,并且您可能无法期望随着Visual Studio 2015(当前为预览版)解决这些问题,有人会对其进行改进,请参阅blogs.msdn.com/b/typescript / archive / 2014/11/12 /…xmojmr

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

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