Using the following launch.json, I’m able to hit breakpoints in the module level code, but not in route-handlers.
launch configuration (the last three lines may not be needed, but are just some things I’ve tried)
{
"name": "Chalice: Local",
"type": "python",
"request": "launch",
"program": "${workspaceFolder}/.venv/bin/chalice",
"args": [
"local",
"--no-autoreload",
],
"console": "integratedTerminal",
"justMyCode": false,
"subProcess": true,
"gevent": true
}
app.py:
...
app = Chalice(app_name="something") # breakpoint here does hit
...
@app.route("/{cluster}", methods=["POST"])
def deploy_pods(cluster):
print(cluster) # breakpoint here doesnt hit (but I can see the print happening)