From c2d34bce4bee94f3d64186fb18e0148958e82875 Mon Sep 17 00:00:00 2001 From: jimmyfagan Date: Fri, 21 Mar 2025 15:52:32 -0500 Subject: [PATCH] Update debugging instructions for python sample client. --- README.md | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/README.md b/README.md index 0f9cf0d..87c8de6 100644 --- a/README.md +++ b/README.md @@ -76,6 +76,34 @@ Debugging server component -------------------------- debugpy remote debugging enabled on port 10678 for server in docker compose, developer can attach to server from IDE e.g. vscode. +To set up the run config to debug in vscode, add below contents to `.vscode/launch.json` +``` +{ + // Use IntelliSense to learn about possible attributes. + // Hover to view descriptions of existing attributes. + // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 + "version": "0.2.0", + "configurations": [ + { + "name": "Python Debugger: Remote Attach", + "type": "debugpy", + "request": "attach", + "connect": { + "host": "0.0.0.0", + "port": 10678 + }, + "justMyCode": false, + "pathMappings": [ + { + "localRoot": "${workspaceFolder}/server", + "remoteRoot": "/server" + } + ] + } + ] +} +``` + Error Responses and handling: ----------------------------- [See ErrorResponses.md](./ErrorResponses.md) \ No newline at end of file