Has anyone had luck using vscode + delve with http servers?

xuanbao · · 523 次点击    
这是一个分享于 的资源,其中的信息可能已经有所发展或是发生改变。
<p>I&#39;m a complete newbie to delve and was trying out its integration in vscode, but I did not have much luck. I set a breakpoint, start the debugger and the http server launches successfully, but the breakpoint doesn&#39;t seem to get picked up. I tried some googling to no avail.</p> <p>Does anyone have any input? It&#39;d be much appreciated.</p> <p>Here&#39;s my launch.json, if that&#39;s any help. I haven&#39;t really customized anything in it.</p> <pre><code>{ &#34;version&#34;: &#34;0.2.0&#34;, &#34;configurations&#34;: [ { &#34;name&#34;: &#34;Launch&#34;, &#34;type&#34;: &#34;go&#34;, &#34;request&#34;: &#34;launch&#34;, &#34;mode&#34;: &#34;debug&#34;, &#34;remotePath&#34;: &#34;&#34;, &#34;port&#34;: 2345, &#34;host&#34;: &#34;localhost&#34;, &#34;program&#34;: &#34;${workspaceRoot}&#34;, &#34;env&#34;: {}, &#34;args&#34;: [] } ] } </code></pre> <hr/>**评论:**<br/><br/>Snavelzalf: <pre><p>What System are you Running, I had Zero problems with delve and vscode?</p></pre>media_guru: <pre><p>Ubuntu </p></pre>cube2222: <pre><p>Maybe try to use intellij idea + delve. Works like a charm for me.</p></pre>

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

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