vs code: add python debug option#153
Merged
Merged
Conversation
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.
Fixes: #
About
This pull request adds automated configuration for Project AirSim Python development in VS Code when generating project files for the Unreal Blocks project. The main improvements are the addition of a script to inject Python debugging settings and the integration of this script into both Windows and Linux/macOS project setup workflows.
VS Code Python development enhancements:
tools/update_blocks_vscode.pythat updates the.vscode/launch.jsonand.vscode/settings.jsonfiles to include Project AirSim-specific Python debugging configurations and sets the correct Python source path for code analysis..vscode/settings.jsonto update thepython.analysis.extraPathsentry, ensuring the correct AirSim Python source directory is used for code completion and analysis.Integration into project setup scripts:
unreal/Blocks/blocks_genprojfiles_vscode.bat(Windows) to call the new Python script after generating VS Code files, adding AirSim Python debug configurations if Python is available.unreal/Blocks/blocks_genprojfiles_vscode.sh(Linux/macOS) to similarly invoke the script, supporting bothpython3andpython, and providing a warning if Python is not found.How Has This Been Tested?
Screenshots and videos (if appropriate):