Skip to content

Debugging improvements#926

Merged
str4d merged 3 commits into
mainfrom
debugging
Sep 1, 2023
Merged

Debugging improvements#926
str4d merged 3 commits into
mainfrom
debugging

Conversation

@str4d
Copy link
Copy Markdown
Contributor

@str4d str4d commented Aug 30, 2023

No description provided.

str4d added 3 commits August 30, 2023 19:46
This is more generally useful for debugging purposes than the default
`Debug` impl for `&[u8]`.

We also provide an alternate `Debug` impl for `legacy::Script` that
parses and renders known opcodes. Note that we only parse a subset of
the full opcode set.
This enhances the alternate `impl Debug for Script` to render unexpected
scripts correctly.
@codecov
Copy link
Copy Markdown

codecov Bot commented Aug 30, 2023

@ebfull
Copy link
Copy Markdown
Collaborator

ebfull commented Sep 1, 2023

Might want to list it as a change in the changelog on the crate since adding variants to public enums is not backwards compatible. Can be done in another PR or during the release though.

@str4d
Copy link
Copy Markdown
Contributor Author

str4d commented Sep 1, 2023

Might want to list it as a change in the changelog on the crate since adding variants to public enums is not backwards compatible. Can be done in another PR or during the release though.

The enum being modified is not public, so that's not an issue here. And AFAICT the other changes are just improvements to what Debug prints out, not changing whether or not it exists (and the precise format of Debug is not part of the public API).

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