Go debugger recent updates?

blov · · 326 次点击    
这是一个分享于 的资源,其中的信息可能已经有所发展或是发生改变。
<p>Hi, I&#39;m new to GO and I&#39;m using Pycharm as my IDE. Does anybody can give an update regarding GO debugging? I understand that print/log is (was) the way but can we see some progress toward decent debugging tool?</p> <hr/>**评论:**<br/><br/>PaluMacil: <pre><p>I don&#39;t use PyCharm for Go. In VS Code I debug with Delve via the plugin available in extensions, giving me step debugging, step in / out, variable lists, and watches. Since Delve is a free-to-use project, I expect it&#39;s the choice for Gogland. Since Gogland is in preview stages, I don&#39;t think the plugin will get much development work until the new IDE is released. Two of the contributors to the plugin were JetBrains employees, I believe, so I wouldn&#39;t be surprised if they return to improve the plugin after further work on Gogland.</p> <p>If you are fine with VS Code, I do recommend it with Go, and that&#39;s coming from being a PyCharm Pro user as well.</p></pre>_nefario_: <pre><p>the old plugin for PyCharm and IntelliJ doesn&#39;t really work well anymore. the debugger was always really slow and never worked for tests. </p> <p>for now, i&#39;d recommend trying out JetBrains&#39; Gogland IDE. the debugger there does more what you&#39;d expect. its not exactly perfect, especially when stepping into go&#39;s standard library code, but overall, its pretty good.</p></pre>dlsniper: <pre><p>Delve is doing a lot of the good work for debugging but there&#39;s a problem with Go itself not producing the right or at all information needed in order to debug applications sometimes, which can make the experience less than ideal. As such, always try and use the latest version and Go, as there are usually a lot of changes between Go 1.7 and Go 1.8 for example, and the latest for delve.</p> <p>Just make sure that you are using the JetBrains maintained Go plugin, not the older community one, and you&#39;ll benefit from the latest developments there, including having a more update version of delve. </p></pre>

入群交流(和以上内容无关):加入Go大咖交流群,或添加微信:liuxiaoyan-s 备注:入群;或加QQ群:692541889

326 次点击  
加入收藏 微博
0 回复
暂无回复
添加一条新回复 (您需要 登录 后才能回复 没有账号 ?)
  • 请尽量让自己的回复能够对别人有帮助
  • 支持 Markdown 格式, **粗体**、~~删除线~~、`单行代码`
  • 支持 @ 本站用户;支持表情(输入 : 提示),见 Emoji cheat sheet
  • 图片支持拖拽、截图粘贴等方式上传