Skip to content

add debugApp script to capture app PRINTF output over USB CDC#159

Merged
tdejoigny-ledger merged 2 commits intodevelopfrom
tdj/debug_over_usb
Apr 3, 2026
Merged

add debugApp script to capture app PRINTF output over USB CDC#159
tdejoigny-ledger merged 2 commits intodevelopfrom
tdj/debug_over_usb

Conversation

@tdejoigny-ledger
Copy link
Copy Markdown
Contributor

No description provided.

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR adds a new debugApp helper script to the ledgerblue tool suite to listen to Ledger app PRINTF output exposed via USB CDC when the app is built with DEBUG_OVER_USB, and wires it into the documentation and packaging dependencies.

Changes:

  • Add ledgerblue/debugApp.py CLI script to auto-detect a Ledger CDC serial port and stream debug output to stdout (optionally to a file).
  • Add pyserial as a project dependency to support USB CDC serial access.
  • Document the new script in the Sphinx script reference.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.

File Description
pyproject.toml Adds pyserial dependency needed by the new debug script.
ledgerblue/debugApp.py Introduces the new USB CDC debug listener CLI.
doc/source/script_reference.rst Adds Sphinx argparse-based documentation entry for debugApp.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 3 out of 3 changed files in this pull request and generated 3 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@tdejoigny-ledger tdejoigny-ledger merged commit 5ada735 into develop Apr 3, 2026
22 checks passed
@tdejoigny-ledger tdejoigny-ledger deleted the tdj/debug_over_usb branch April 3, 2026 15:05
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.

3 participants