Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 17 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ uninstall:
rm /usr/local/share/man/man1/telepath.1

build:
go build -ldflags="$(LDFLAGS)" -o telepath
go build -gcflags="all=-N -l" -ldflags="$(LDFLAGS)" -o telepath

dist:
cp man/telepath.1 man/telepath.old
Expand Down Expand Up @@ -70,4 +70,19 @@ dist:

clean:
rm -rf telepath*
rm -rf build
rm -rf build

# For headless debugging
debug-srv-headless: build
dlv exec telepath --headless --listen=:2345 --api-version=2 -- daemon start --daemon-child

# Will connect remote debugger
debug-connect:
dlv connect :2345

# Will debug daemon locally
debug: build
dlv exec telepath -- daemon start --daemon-child
# For client debugging you need to start similar command line this
# dlv exec telepath -- daemon status
# dlv exec telepath -- host list
Loading