Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to use a debugger when developing a tflint plugin? #351

Open
DBX12 opened this issue Oct 28, 2024 · 1 comment
Open

How to use a debugger when developing a tflint plugin? #351

DBX12 opened this issue Oct 28, 2024 · 1 comment
Labels
question Further information is requested

Comments

@DBX12
Copy link

DBX12 commented Oct 28, 2024

This may seem like a stupid question, but how would one use a debugger when developing a plugin with this SDK?
I would expect that I have to start the plugin with delve and have tflint connect to it, but I don't see how I could configure tflint to do so. Since it is a plugin, I cannot execute it directly since it will just say that it is a plugin and isn't meant to be executed directly.

@wata727
Copy link
Member

wata727 commented Oct 30, 2024

Unfortunately, there is currently no way to use a debugger, so log-based debugging is required.

The Terraform provider has a debugger-based debugging way, so we may be able to use the debugger by introducing a similar mechanism.
https://developer.hashicorp.com/terraform/plugin/debugging#debugger-based-debugging

@wata727 wata727 added the question Further information is requested label Oct 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Development

No branches or pull requests

2 participants