I noticed unusual behavior when using l (i.e. list command) in ipdb . I think I saw something like this with the Perl debugger in the past, but that still puzzles me.
The first time I inoke, it correctly displays ~ 10 lines of code around the current step (breakpoint). However, if I click it several times, it no longer shows the code around the current location, but instead it shows a code that is below this.
In the end, list displays the final lines of the script, and if I press l again, it doesn't show anything else.
Why is this and how can I make him behave sequentially, like the first time I call him?
source share