Visual Studio-style debugger / profiler for golang?

polaris · · 1356 次点击    
这是一个分享于 的资源,其中的信息可能已经有所发展或是发生改变。
<p>In Java/C++/C#, debuggers that come with fancy IDEs such as Visual Studio enable you to do a lot of amazing stuff: sprinkle breaking points all over the code, browse the address space and variable values during the execution and so on.</p> <p>How to do these things in go? What tools can one use?</p> <hr/>**评论:**<br/><br/>mdwhatcott: <pre><p><a href="http://blog.mailgun.com/introducing-a-new-cross-platform-debugger-for-go/">This blog post</a> introduces <a href="https://github.com/mailgun/godebug">godebug</a>, which seems promising.</p></pre>SupersonicSpitfire: <pre><p>Relevant: <a href="https://github.com/derekparker/delve/issues/22" rel="nofollow">https://github.com/derekparker/delve/issues/22</a></p></pre>pseudomind: <pre><p>You may test out go-ide. IIRC it was super annoying to set up and use on OSX but, worked quite well on linux.</p> <p><a href="http://go-ide.com" rel="nofollow">http://go-ide.com</a></p></pre>space-llama: <pre><p>I&#39;ve gotten the most mileage from just having the vim-go plugin for vim. With the suggested key remappings I can jump deep into the code base very quickly. If you install Oracle you can also do some analysis like what things implement an interface and callers of a specific function. It&#39;s not a &#34;fancy IDE&#34; but it has almost all of the same capabilities. I mainly like being able to run go test on the test I&#39;m currently writing and see a little pop up with the errors, if there are any. </p> <p>Debugging a running program has become a little harder over the years. Delve is probably one of the better projects right now, though it has some odd bugs and behaviors. I used to use GDB but apparently it&#39;s development has halted in favor lldb, which doesn&#39;t seem to want to use the Go runtime debugging file that comes with Go. It&#39;s worth fiddling with some more since it&#39;s the most control you can have over your process without having to use a third party lib like godebugger (which is very new).</p> <p>If you find anything that works well, please write back. I&#39;m very interested in exploring proper debugging more. </p></pre>jerflang: <pre><p>have you tried godebug? </p></pre>staysafenerds: <pre><p>komodo ide</p> <p>jetbrains go plugin</p> <p>liteide or whatever its called?</p></pre>dilatedmind: <pre><p>if youre not using vim i think liteide is the best.</p></pre>

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

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