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

f-#: Adds a flag for debugging the provider #582

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

aleixrm
Copy link
Member

@aleixrm aleixrm commented Dec 3, 2024

Community Note

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
  • Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for PR followers and do not help prioritize the request

Description

Adding a "--debug" flag and setting the ProviderAddr will allow us to easily debug the opennebula terraform provider using delve or VSCode, for instance.

Added documentation for debugging the provider and the tests through VSCode.

More info: https://developer.hashicorp.com/terraform/plugin/debugging#enabling-debugging-in-a-provider

References

#000

New or Affected Resource(s)

  • opennebula provider

Checklist

  • I have created an issue and I have mentioned it in References
  • My code follows the style guidelines of this project (use go fmt)
  • My changes generate no new warnings or errors
  • I have updated the unit tests and they pass succesfuly
  • I have commented my code, particularly in hard-to-understand areas
  • I have updated the documentation (if needed)
  • I have updated the changelog file

@aleixrm aleixrm force-pushed the f-#/adds-debugging-flag branch from 1844249 to 47e910d Compare December 3, 2024 16:43
Copy link
Collaborator

@sk4zuzu sk4zuzu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants