VSCode/PyCharm debugger settings and documentation + warnings fixes #844
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.
Initial steps to configure debugger in popular IDEs
AI Description
This PR introduces debugging capabilities for the dockerized Toolkit API using VSCode and PyCharm. It provides a comprehensive guide on how to debug the API, allowing developers to inspect code, set breakpoints, and step through code execution to identify and fix issues.
The PR adds new sections to the
README.md
file, detailing how to debug the dockerized Toolkit API with VSCode and PyCharm. It also includes a newdocs/debugging.md
file, which provides a step-by-step guide for debugging with both tools.Key Changes:
docs/debugging.md
file offers a detailed walkthrough for debugging the dockerized Toolkit API using VSCode and PyCharm. It covers setting up the project, configuring the debugger, and running the API in debug mode.vscode-debug
andpycharm-debug
, which facilitate debugging with VSCode and PyCharm, respectively.docker-compose.vscode.debug.yml
anddocker-compose.pycharm.debug.yml
, have been added to configure the debugging environment for VSCode and PyCharm, respectively.src/backend/main.py
andsrc/backend/pycharm_debug_main.py
files have been modified to include theasynccontextmanager
decorator and thelifespan
function, enhancing the application's lifecycle management.src/backend/schemas/agent.py
file has been updated to include themodel_config
dictionary, replacing the previousConfig
class.