var img = document.createElement('img'); img.src = "https://terradocs.matomo.cloud//piwik.php?idsite=2&rec=1&url=https://feather.terra.money" + location.pathname; img.style = "border:0"; img.alt = "tracker"; var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(img,s);
Skip to main content

Debugging Feather

VSC users may make use the following launch.json to debug Feather CLI.


{
"version": "0.2.0",
"configurations": [
{
"name": "Launch Package",
"type": "go",
"request": "launch",
"mode": "auto",
"program": "/Users/path/to/feather/cli/cmd/feather", // TODO
"args": [
"validator",
"daemon",
"start",
"--key",
"YOUR_KEY_NAME", // TODO
"--docker-registry",
"dockerhub",
"--docker-username",
"YOUR_DOCKER_HUB_USERNAME (NOT EMAIL!)", // TODO
"--docker-password",
"YOUR_DOCKER_HUB_PASSWORD", // TODO
"--reset",
"--unsafe"
]
}
]
}

  • The program attribute should point to the go repo's main package
  • To run other CLI command, change the args array to the command you want to run
  • --reset drops and re-creates all SQL tables used by the SQLite action log (~/.feather/feather_action_log.db) used for crash recovery
    • For testing purposes, starting from a clean state allows for easier debugging
  • --unsafe skips simulations run before Feather Daemon subscribes to a chain
    • For testing purposes, this speeds up E2E testing

Refer to the launch.json attributes reference for more configuration options.