未验证 提交 86f711dd 编写于 作者: Q quicksilver 提交者: GitHub

Support Code debug in Devcontainer (#10095)

Signed-off-by: Nquicksilver <zhifeng.zhang@zilliz.com>
上级 6601c243
......@@ -205,12 +205,6 @@ Modify vscode go setups if necessary, the setting path is **code -> preference -
![image](../docs/imgs/settings.png)
Enable Code debug by remote debugging with dlv, you can enable debugging by run the following command inside your docker:
```shell
cp /go/bin/dlv /go/bin/dlv-dap
```
### Integrate goland with docker
TBD
......@@ -58,6 +58,8 @@ RUN mkdir -p /usr/local/go && wget -qO- "https://golang.org/dl/go1.15.2.linux-am
go clean --modcache && \
chmod -R 777 "$GOPATH" && chmod -R a+w $(go env GOTOOLDIR)
RUN ln -s /go/bin/dlv /go/bin/dlv-dap
RUN echo 'root:root' | chpasswd
# refer: https://code.visualstudio.com/docs/remote/containers-advanced#_avoiding-extension-reinstalls-on-container-rebuild
......
......@@ -35,6 +35,8 @@ RUN mkdir -p /usr/local/go && wget -qO- "https://golang.org/dl/go1.15.2.linux-am
go clean --modcache && \
chmod -R 777 "$GOPATH" && chmod -R a+w $(go env GOTOOLDIR)
RUN ln -s /go/bin/dlv /go/bin/dlv-dap
RUN apt-get update && apt-get install -y --no-install-recommends \
gdb gdbserver && \
apt-get remove --purge -y && \
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册