Skip to content

chore: 🔨 Add configuration to debug the binary produced by pxt#10

Merged
nedseb merged 1 commit into
mainfrom
feature/9-add-debugger-configuration-for-running-pxt-binary-from-vscode
Oct 29, 2024
Merged

chore: 🔨 Add configuration to debug the binary produced by pxt#10
nedseb merged 1 commit into
mainfrom
feature/9-add-debugger-configuration-for-running-pxt-binary-from-vscode

Conversation

@nedseb
Copy link
Copy Markdown
Contributor

@nedseb nedseb commented Oct 25, 2024

This pull request addresses issue #9 by adding the necessary configuration for debugging the PXT-generated binary directly from Visual Studio Code. This configuration enhances the development experience by allowing seamless debugging of MakeCode projects.

Summary of Changes:

  1. Added Workspace Configuration: Introduced a workspace configuration to centralize all project settings, making it easier to manage and avoid configuration dispersion.

  2. Created Flash Tasks: Added VSCode tasks for flashing the generated binary to the STeaMi board, streamlining the workflow and reducing manual intervention.

  3. Debugger Configuration: Set up the required debugger configuration (launch.json) to enable running and debugging the PXT binary directly from VSCode, including support for setting breakpoints and stepping through the code.

  4. Dev Container Adaptation: Updated the development container to handle pyocd for board flashing and udev rules to ensure appropriate USB permissions. This ensures the debugger can interact with the hardware without additional setup from developers.

  5. Removed External Configurations: Removed configurations that were outside of the workspace to ensure that all relevant settings are consolidated, reducing the risk of inconsistency and making the setup more maintainable.

These changes provide an integrated development experience, enabling developers to build, flash, and debug their MakeCode projects entirely within VSCode. The centralized configuration simplifies onboarding and ensures consistency across different development environments.

Please review these changes, and let me know if there are any suggestions or areas for further improvement.

Thank you!

@nedseb nedseb self-assigned this Oct 25, 2024
@nedseb nedseb added the enhancement New feature or request label Oct 25, 2024
@nedseb nedseb added this to the v1.0.0 milestone Oct 25, 2024
@nedseb nedseb linked an issue Oct 25, 2024 that may be closed by this pull request
@nedseb nedseb merged commit d4b6a29 into main Oct 29, 2024
@nedseb nedseb deleted the feature/9-add-debugger-configuration-for-running-pxt-binary-from-vscode branch October 29, 2024 13:58
@semantic-release-updater
Copy link
Copy Markdown

🎉 This PR is included in version 1.0.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request released

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add Debugger Configuration for Running PXT Binary from VSCode

3 participants