This document describes methods to debug the binaries in various environments.
Note: This document assumes you are using the devcontainer.
The skaffold tool comes with a debug command which automatically relaunches the containers with the appropriate debug tool. Docs
- Run:
make debug-local.- Make sure to stop any existing local servers first.
- Click the
Run and debugicon on the left side of IDE.- You may need to click a "Run and debug button" initially.
- Select the service you want to debug.
- You can debug different services at the same time.
- Place your breakpoints and exercise those paths
- Ensure to click the disconnect button when finished
The most productive way to iterate on Go logic is using the VS Code Testing Panel:
- Open the Testing icon in the sidebar (the lab flask icon).
- Find your specific test case in the tree.
- Click the Debug icon next to the test to set breakpoints directly in the Go code.
If you are modifying the search grammar:
- Open
antlr/FeatureSearch.g4. - Install the "ANTLR4" extension.
- Run the "Debug FeatureSearch grammar" launch configuration to visualize and walk the parse tree.