How to debug python (in GitPod) - DevOps-MBSE/AaC GitHub Wiki
- Open the repo/branch you want to work in.
- Hit the F1 button to open a command pallet.
- Type/select "Open workspace from file"
- In the file selector, choose "/workspace/AaC/.vscode/python.code-workspace"
The IDE will "restart" and will be configured as if the python directory is the root. You can now use the debugger, unit test tools, etc.
If you need to actually debug an aac command line execution:
- Click the "hamburger menu" in the top left.
- Select File->Open
- Select the "/workspace/AaC/.vscode/python.code-workspace" file.
- Copy an entry in the Launch->Configurations portion of the JSON and edit it to run the command you want.
- Be sure to give it a unique name.
Now you can select that unique name from the debug screen and run the command in the debugger.
Additionally, if you just want to run a test from the terminal you can use nose2' followed by the "dot path" to the test file. For example: nose2 tests.lang.test_references`