dnscontrol/documentation/debugging-with-dlv.md

16 lines
500 B
Markdown
Raw Normal View History

## Debugger
Test a particular function:
```shell
2023-05-21 01:21:45 +08:00
dlv test github.com/StackExchange/dnscontrol/v4/pkg/diff2 -- -test.run Test_analyzeByRecordSet
^^^^^^^^^
Assumes you are in the pkg/diff2 directory.
```
Debug the integration tests:
```shell
2023-05-21 01:21:45 +08:00
dlv test github.com/StackExchange/dnscontrol/v4/integrationTest -- -test.v -test.run ^TestDNSProviders -verbose -provider NAMEDOTCOM -start 1 -end 1 -diff2
```