<p>it just gives me nothing... I have a remote server with </p>
<pre><code>dlv attach --headless=true --listen=:9995 --api-version=2 62891
</code></pre>
<hr/>**评论:**<br/><br/>dlsniper: <pre><p>Please open an issue on the tracker tracker and provide the IDE logs. You can find the logs via Help | Collect and Show Logs in... and attach the zip file to the issue at <a href="https://youtrack.jetbrains.com/issues/Go" rel="nofollow">https://youtrack.jetbrains.com/issues/Go</a></p>
<p>It would also be great if you can enable the debugger output to logs via Help | Debug Log Settings... and add this line: #com.goide.dlv.DlvVm , then go about your usual debugging workflow. Whenever the issue happens, please continue for a bit and then go to the Help | Collect and Show Logs in... part.</p>
<p>Thank you.</p>
<p>Edit: yes, it does work but you may have stumbled into a bug of some sorts.</p>
<p>First thing that you need to do is make sure that the target binary is compiled with all optimizations off, as the IDE instructions show, using -gcflags="-N -l". </p>
<p>The next thing is to use at least Go1.9.2 if you cannot use Go 1.10beta2. The newer the Go version is, the better debugging support it has.</p>
<p>Third one is to check your firewall.</p>
<p>Hope it helps. </p></pre>
这是一个分享于 的资源,其中的信息可能已经有所发展或是发生改变。
入群交流(和以上内容无关):加入Go大咖交流群,或添加微信:liuxiaoyan-s 备注:入群;或加QQ群:692541889
- 请尽量让自己的回复能够对别人有帮助
- 支持 Markdown 格式, **粗体**、~~删除线~~、
`单行代码`
- 支持 @ 本站用户;支持表情(输入 : 提示),见 Emoji cheat sheet
- 图片支持拖拽、截图粘贴等方式上传