Skip to content

Commit 116ec5d

Browse files
Add docs for instruction commands
1 parent a42a420 commit 116ec5d

1 file changed

Lines changed: 26 additions & 0 deletions

File tree

Doc/library/pdb.rst

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -379,6 +379,13 @@ can be overridden by the local file.
379379
Execute the current line, stop at the first possible occasion (either in a
380380
function that is called or on the next line in the current function).
381381

382+
.. pdbcommand:: si | stepi
383+
384+
Execute the current instruction, stop at the first possible occasion (either in a
385+
function that is called or on the next instruction in the current function).
386+
387+
.. versionadded:: 3.12
388+
382389
.. pdbcommand:: n(ext)
383390

384391
Continue execution until the next line in the current function is reached or
@@ -387,6 +394,13 @@ can be overridden by the local file.
387394
executes called functions at (nearly) full speed, only stopping at the next
388395
line in the current function.)
389396

397+
.. pdbcommand:: ni | nexti
398+
399+
Continue execution until the next instruction in the current function is reached or
400+
it returns.
401+
402+
.. versionadded:: 3.12
403+
390404
.. pdbcommand:: unt(il) [lineno]
391405

392406
Without argument, continue execution until the line with a number greater
@@ -433,13 +447,25 @@ can be overridden by the local file.
433447
.. versionadded:: 3.2
434448
The ``>>`` marker.
435449

450+
.. pdbcommand:: li | listi [first[, last]]
451+
452+
Similar to :pdbcmd:`list`, but also display instructions with source code
453+
454+
.. versionadded:: 3.12
455+
436456
.. pdbcommand:: ll | longlist
437457

438458
List all source code for the current function or frame. Interesting lines
439459
are marked as for :pdbcmd:`list`.
440460

441461
.. versionadded:: 3.2
442462

463+
.. pdbcommand:: lli | longlisti
464+
465+
Similar to :pdbcmd:`ll`, but also display instructions with source code
466+
467+
.. versionadded:: 3.12
468+
443469
.. pdbcommand:: a(rgs)
444470

445471
Print the argument list of the current function.

0 commit comments

Comments
 (0)