0

Fix local Python VSCode debugger instructions

Change-Id: I86a9b0e4d74f57cf1e20976084504cacc1883b63
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2480804
Reviewed-by: John Chen <johnchen@chromium.org>
Commit-Queue: Ryan Heise <heiserya@google.com>
Auto-Submit: Ryan Heise <heiserya@google.com>
Cr-Commit-Position: refs/heads/master@{#817967}
This commit is contained in:
Ryan Heise
2020-10-16 16:55:33 +00:00
committed by Commit Bot
parent e05a888c4d
commit 7e36b15b99

@ -52,31 +52,4 @@ Note: The port passed to debugpy.listen() should match the port configured in (3
## Locally
1. On the debug tab, on the drop-down next to the play button, select “Add
Config”
2. Add the following to the configurations array in “launch”:
```
{
"name":"Python: Local",
"type":"python",
"request":"attach",
"processId":"${command:pickProcess}"
}
```
3. Add the following to your program:
```
import debugpy
# Your code here!
print("Wait for attach...")
debugpy.wait_for_attach()
debugpy.brerakpoint()
```
4. Start your program.
5. Start the debugger. A dialog box will pop up asking you to select your
running program.
Follow the same steps as above, but start from step 5.