[英]Use link to open source Google Chrome Developer Tools Sources tab
When running JS unit tests in Google Chrome, occasionally tests fail with a stack trace. 在Google Chrome中运行JS单元测试时,有时候测试会因堆栈跟踪而失败。 The test infrastructure knows the file that failed and possibly the line that caused the failure.
测试基础架构知道失败的文件以及可能导致失败的线路。 I'd like to be able to view the failing .js file in the 'Sources' tab of the Google Closure Developer Tools via a clicking a link.
我希望能够通过点击链接在Google Closure开发者工具的“来源”标签中查看失败的.js文件。
Is it possible to craft a link such that, if the dev tools window is already open that: 是否有可能创建一个链接,如果开发工具窗口已经打开:
The more I think about it, this sounds like maybe a chrome extension would be required? 我想的越多,这听起来可能需要镀铬扩展吗?
I agree you would probably need a plugin. 我同意你可能需要一个插件。 You can however create a view-source link (though no line numbers):
但是,您可以创建一个视图源链接(尽管没有行号):
<a href="view-source:http://stackoverflow.com/questions/18660106">view source</a>
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.