---
# System prepended metadata

title: Golang remote debug mode
tags: [Golang]

---

---
title: Golang remote debug mode
---
# Golang remote debug mode
###### tags: `Golang`

1. Golang edit configuration setting
![](https://i.imgur.com/UqioiG8.jpg)

2. 執行環境上安裝dlv (本地當然也要)
> https://github.com/go-delve/delve/tree/master/Documentation/installation

3. 於專案目錄內執行
> /home/ubuntu/go/bin/dlv debug --headless --listen=:2345 --api-version=2 --accept-multiclient

