You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy pasting an idea from @bryanchriswhite to be documented in the docs in the future.
If anyone else finds themselves debugging a flickering / flaky test, may I recommend this guide which blew my mind: 🤯 http://choly.ca/post/debugging-go-with-rr/
TLDR;`go test -c ... + rr + dlv`:
1. go test -c ... builds a test binary which can be run by another program or script
2. rr runs in a loop (with the test) until produces a failure once.
3. The captured execution trace can then be replayed deterministically and debugged with dlv. 🤙
Objective
Document how to use the
dlv
debugger in LocalNet.Origin Document
The
LocalNet
CLI and logging are useful, but we need to be able to step through the code in unit tests and in a dev environmentGoals
vscode
andGoland
as a first iterationDeliverables
dlv
debugger usingvscode
dlv
debugger usingGoland
Non-goals / Non-deliverables
General issue deliverables
[Optional] Testing Methodology
LocalNet
is still functioning correctly by following the instructions at docs/development/README.mdCreator: @Olshansk
Co-Owners: @andrewnguyen22
The text was updated successfully, but these errors were encountered: