jdamata / terraform-provider-sonarqube

Terraform provider for managing Sonarqube configuration
GNU General Public License v3.0
62 stars 54 forks source link

Add debug option #155

Closed freeranger closed 1 year ago

freeranger commented 1 year ago

Adds the ability to debug the provider as described in the Hashicorp article Debugger-Based Debugging.

I don't think there are any specific automated tests I can add for this - I tested that debugging worked using Visual Studio Code and I tested that the provider worked normally too.

jdamata commented 1 year ago

Could I get you to create a new debugging.md file and link this doc in the readme.md

Appreciate this contribution!! Never heard of this debugging feature :D

freeranger commented 1 year ago

Could I get you to create a new debugging.md file and link this doc in the readme.md

Appreciate this contribution!! Never heard of this debugging feature :D

Done. I didn't know about it myself - was looking for some nasty method I'd used before (debugging your provider IIRC :D) and stumbled upon this instead! Works very well with VS Code at least - YMMV with other tooling.