chore: 🔨 Add configuration to debug the binary produced by pxt#10
Merged
nedseb merged 1 commit intoOct 29, 2024
Conversation
|
🎉 This PR is included in version 1.0.0 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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:
Added Workspace Configuration: Introduced a workspace configuration to centralize all project settings, making it easier to manage and avoid configuration dispersion.
Created Flash Tasks: Added VSCode tasks for flashing the generated binary to the STeaMi board, streamlining the workflow and reducing manual intervention.
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.Dev Container Adaptation: Updated the development container to handle
pyocdfor board flashing andudevrules to ensure appropriate USB permissions. This ensures the debugger can interact with the hardware without additional setup from developers.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!