I am working with ipdb and yield. I noticed the yield does not act as expected when using it with ipdb.
Specifically, this code when being debugged with ipdb (and pressing the 'n' charcter in the key board simply skips the yield command instead of returning from the function)
def cats():
print(-1)
yield
for i in range(4):
print(i)
yield
import ipdb
ipdb.set_trace()
x = cats()
next(x)
next(x)
next(x)
How could this be resolved?