Python debugger supports the jump command to set the next line to be executed.
Can I use this feature when debugging Python code in VS Code?
v1.36 of vscode has added this "jump to cursor" functionality, see debug: jump to cursor in release notes .
Jump to cursor
We have added a new debug command Jump to Cursor, which lets you move program execution to a new location without executing any of the code in between. If Jump to Cursor is supported by a debugger, the new command appears in the editor context menu and Command Palette while debugging. Currently this command is only available from the C# extension, but other debug extensions should follow soon.
Now the Python debugger must add the feature.
And there will be a Command Palette alias Set Next Statement
added soon, see https://github.com/microsoft/vscode/commit/fb28cedc37fcdd589f6a7d35ef093f324d649a3c (Introduce "Set Next Statement" as an alias for Jump to Cursor).
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.