• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

gotooltrace浏览器空白页问题traceshowsblankpage

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

使用go tool trace时,会打开浏览器显示相关页面,但有很多链接无法打开,显示空白页。

页面中的报错:

Uncaught ReferenceError: tr is not defined
    at trace_viewer_html.js:595


Uncaught ReferenceError: tr is not defined
    at onResult (trace?goid=3126858:73)
    at trace?goid=3126858:57

在github golang 项目中,可以找到
相关讨论issue

在golang官方文档中,有提到
command trace 需要使用chrome浏览器

Note that while the various profiles available when launching 'go tool trace' work on every browser, the trace viewer itself (the 'view trace' page) comes from the Chrome/Chromium project and is only actively tested on that browser. 

但是发现,使用chrome浏览器还是有问题。

解决办法

问题原因可能是golang 版本bug。

原来使用的golang版本是1.13.8,升级到go 1.14.4后,

使用firefox,是可以的。
使用chrome,还是有问题。

firefox和chrome版本如下:

  • firefox 版本 77.0.1 (64 位)
  • chrome 版本 83.0.4103.116(正式版本) (64 位)

使用firefox 的效果图:


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
从gopath到gomod的一次尝试发布时间:2022-07-10
下一篇:
goJSON发布时间:2022-07-10
热门推荐
热门话题
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap