DrFaust92 / terraform-provider-bitbucket

Terraform Bitbucket Cloud provider.
https://registry.terraform.io/providers/drfaust92/bitbucket
Mozilla Public License 2.0
38 stars 30 forks source link

chore: add support for local provider debugging #108

Closed Nkmol closed 1 year ago

Nkmol commented 1 year ago

This PR adds support for attaching a go-delve session to the codebase using a -debug flag. This follows the documentation of https://developer.hashicorp.com/terraform/plugin/debugging where the implementation of https://developer.hashicorp.com/terraform/plugin/sdkv2/debugging is used.

Together with a local .terraformrc and a local backend, I can live test and debug (with VSCode break points) this provider. I thought this might be a nice addition for everyone.