Python Debugpy Use when Python code needs interactive debugging: hidden locals, confusing state mutation, failing tests, subprocesses, long-running services, or remote/headless attach. Pick the smallest debugger that reaches the bad frame. Choose - : local code, source edits ok, fastest path. - : no source edit, launch from the beginning. - : stop at an unhandled exception. - : remote/headless process, DAP client, already-running PID, or service startup race. Commands For source-edit attach: For post-mortem: pdb - Flow: , , , , . - Stack/source: , , , , , . - Values: , , . - Breakpoints: , ,…