Commit 7e36b15b authored by Ryan Heise's avatar Ryan Heise Committed by Commit Bot

Fix local Python VSCode debugger instructions

Change-Id: I86a9b0e4d74f57cf1e20976084504cacc1883b63
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2480804Reviewed-by: default avatarJohn 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}
parent e05a888c
...@@ -52,31 +52,4 @@ Note: The port passed to debugpy.listen() should match the port configured in (3 ...@@ -52,31 +52,4 @@ Note: The port passed to debugpy.listen() should match the port configured in (3
## Locally ## Locally
1. On the debug tab, on the drop-down next to the play button, select “Add Follow the same steps as above, but start from step 5.
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.
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment