dlv test does not pass -test.fuzzcachedir=
Author: KentzoCreated Jan 17, 2026Updated Jan 19, 2026
Labelskind/needs decision
What version of Delve are you using (dlv version)?
1.26.0
What version of Go are you using? (go version)?
go1.25.5
What operating system and processor architecture are you using?
darwin/arm64
Description
I'm attempting to debug my fuzz test via:
dlv test . -- -test.parallel=1 -test.fuzzminimizetime=0 -test.fuzz FuzzDSO -test.fuzztime=30sAfter dlv starts and I continue, the process exits with error:
(dlv) c
testing: -test.fuzzcachedir must be set if -test.fuzz is set
...Where -test.fuzzcachedir is an internal option flag:
-test.fuzzcachedir string
directory where interesting fuzzing inputs are stored (for use only by cmd/go)In order to work around this error I need to manually provide -test.fuzzcachedir:
dlv test . -- -test.parallel=1 -test.fuzzminimizetime=0 -test.fuzz FuzzDSO -test.fuzztime=30s -test.fuzzcachedir=./testdataInstead, I expect dlv test to figure it out without similarly to how go test does.
Source: go-delve/delve