In ipdb
using command a
or args
prints information on provided arguments for the method. How do I get actual args
variable so I can work on the provided data?
For example when I have code:
class A(object):
def test(*args, **kwargs):
import ipdb; ipdb.set_trace()
A().test('testing arg')
Then after running the code I tried:
ipdb> args
args = (<__main__.A object at 0x1007bdf90>, 'testing arg')
kwargs = {}
ipdb> args[0]
args = (<__main__.A object at 0x1007bdf90>, 'testing arg')
kwargs = {}
ipdb>