Skip to content
This repository has been archived by the owner on Jul 9, 2024. It is now read-only.

Feature: allow plugin debugging #39

Merged
merged 2 commits into from
Jun 25, 2021
Merged

Feature: allow plugin debugging #39

merged 2 commits into from
Jun 25, 2021

Conversation

izaaklauer
Copy link
Contributor

@izaaklauer izaaklauer commented Jun 25, 2021

These changes enable debugging of plugin processes with tools like Delve. It follows Terraform's model for debugging plugins, and the code is in large part copied from terraform-plugin-sdk.

See hashicorp/waypoint#1716 for how these changes would be consumed by core, and a description of the debugging workflow that this enables.

This introduces a new Debug method, which a plugin can use instead of Main to launch in an unmanaged mode and wait for core to connect.

This allows for debugging plugins!
@izaaklauer izaaklauer added the enhancement New feature or request label Jun 25, 2021
@izaaklauer izaaklauer marked this pull request as ready for review June 25, 2021 14:29
@izaaklauer izaaklauer requested a review from a team June 25, 2021 14:29
Copy link
Contributor

@mitchellh mitchellh left a comment

Choose a reason for hiding this comment

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

Looks good!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants