#2269·delve

Support android operating system

Author: kcubetermCreated Dec 14, 2020Updated Nov 27, 2025
Labelskind/enhancementarea/proc/nativekind/port
  1. What version of Delve are you using (dlv version)?
bash
$ dlv version
Delve Debugger
Version: 1.5.1
Build: $Id: bca418ea7ae2a4dcda985e623625da727d4525b5 $
  1. What version of Go are you using? (go version)?
bash
$ go version
go version go1.15.5 android/arm64
  1. What operating system and processor architecture are you using? OS: Android pie Arch: aarch64
  2. What did you do? Official golang hello example.
bash
dlv debug ./hello
panic: attempting to open file Delve cannot parse

goroutine 1 [running]:
github.com/go-delve/delve/service/debugger.verifyBinaryFormat(0x400003a1e0, 0x4d, 0x0, 0x0)
        /data/data/com.termux/files/home/go/src/github.com/go-delve/delve/service/debugger/debugger_unix.go:36 +0x120
github.com/go-delve/delve/service/debugger.(*Debugger).Launch(0x4000200a80, 0x40000745c0, 0x1, 0x1, 0x55a26d906d, 0x1, 0x1, 0x55a2241024, 0x73304145c0)
        /data/data/com.termux/files/home/go/src/github.com/go-delve/delve/service/debugger/debugger.go:225 +0x40
github.com/go-delve/delve/service/debugger.New(0x4000254000, 0x40000745c0, 0x1, 0x1, 0x0, 0x0, 0x0)
        /data/data/com.termux/files/home/go/src/github.com/go-delve/delve/service/debugger/debugger.go:176 +0x464
github.com/go-delve/delve/service/rpccommon.(*ServerImpl).Run(0x40002009c0, 0x40002009c0, 0x40002285a0)
        /data/data/com.termux/files/home/go/src/github.com/go-delve/delve/service/rpccommon/server.go:112 +0xa8
github.com/go-delve/delve/cmd/dlv/cmds.execute(0x0, 0x40000745c0, 0x1, 0x1, 0x4000221f80, 0x0, 0x0, 0x1, 0x4000074550, 0x1, ...)
        /data/data/com.termux/files/home/go/src/github.com/go-delve/delve/cmd/dlv/cmds/commands.go:856 +0x620
github.com/go-delve/delve/cmd/dlv/cmds.debugCmd.func1(0x4000218fc0, 0x4000074550, 0x1, 0x1, 0x0)
        /data/data/com.termux/files/home/go/src/github.com/go-delve/delve/cmd/dlv/cmds/commands.go:473 +0x330
github.com/go-delve/delve/cmd/dlv/cmds.debugCmd(0x4000218fc0, 0x4000074550, 0x1, 0x1)
        /data/data/com.termux/files/home/go/src/github.com/go-delve/delve/cmd/dlv/cmds/commands.go:474 +0x38
github.com/go-delve/delve/vendor/github.com/spf13/cobra.(*Command).execute(0x4000218fc0, 0x4000074510, 0x1, 0x1, 0x4000218fc0, 0x4000074510)
        /data/data/com.termux/files/home/go/src/github.com/go-delve/delve/vendor/github.com/spf13/cobra/command.go:647 +0x17c
github.com/go-delve/delve/vendor/github.com/spf13/cobra.(*Command).ExecuteC(0x40002186c0, 0x40002186c0, 0x55a26dc582, 0x6)
        /data/data/com.termux/files/home/go/src/github.com/go-delve/delve/vendor/github.com/spf13/cobra/command.go:733 +0x1f8
github.com/go-delve/delve/vendor/github.com/spf13/cobra.(*Command).Execute(...)
        /data/data/com.termux/files/home/go/src/github.com/go-delve/delve/vendor/github.com/spf13/cobra/command.go:692
main.main()
        /data/data/com.termux/files/home/go/src/github.com/go-delve/delve/cmd/dlv/main.go:24 +0xb8