Update debugging.md

This commit is contained in:
blueloveTH 2025-09-09 19:16:09 +08:00
parent 6cb47cb544
commit 4ac11583ba

View File

@ -30,7 +30,7 @@ pocketpy provides a C-API `py_debugger_waitforattach`,
which starts a debug server and waits for the VSCode extension to attach. which starts a debug server and waits for the VSCode extension to attach.
When the debugger is attached, the program will continue to run. When the debugger is attached, the program will continue to run.
+ If you are using pocketpy's standalone executable `main.exe`, you can pass `--debug` flag to it. This will automatically call `py_debugger_waitforattach("localhost", 6110)` before running your program. + If you are using pocketpy's standalone executable `main.exe`, you can pass `--debug` flag to it. This will automatically call `py_debugger_waitforattach("127.0.0.1", 6110)` before running your program.
+ If you are embedding pocketpy as a library, you need to call `py_debugger_waitforattach` manually in your C/C++ code. + If you are embedding pocketpy as a library, you need to call `py_debugger_waitforattach` manually in your C/C++ code.
## Configuration ## Configuration