[英]Copy debug path to object data visual studio code javascript
Is there a way in Visual Studio Code to copy the path to data in an object when debugging?调试时,Visual Studio Code 有没有办法复制对象中数据的路径? Example: if my data lives in Object.user.city.name I would like to be able to copy that path after drilling down through debug console.
示例:如果我的数据位于 Object.user.city.name 中,我希望能够在深入调试控制台后复制该路径。
When debugging, under variables view, right click on the variable you want to export the path too and choose "Copy as Expression"调试时,在变量视图下,右键单击要导出路径的变量,然后选择“复制为表达式”
Thanks to @ConnorPeet on Twitter for the help!感谢 Twitter 上的 @ConnorPeet 的帮助!
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.