Can I ask IPython to break when it encounters a variable at a specific value?
myloop.py
for myvar in range(1, 10):
print("myvar: {}".format(myvar))
this does not work, but I envision something like...
%run -d -b myvar:6 /path/to/myloop.py
where IPython breaks when myvar is 6
There is a similar question using import ipdb;ipdb.set_trace()
but based on IPython's %run all necessary input to debug a condition can be handled using the magic command.