You can even use logging module in python to validate the variable values.
You can import the module and use any of the following levels in your
program

import logging

 logging.CRITICAL, logging.ERROR, logging.WARNING, logging.INFO,
logging.DEBUG

For more you can refer to,

http://docs.python.org/2/library/logging.html
http://stackoverflow.com/questions/1623039/python-debugging-tips




On Wed, Aug 14, 2013 at 3:12 AM, chandan kumar <chandan_...@yahoo.co.in>wrote:

> Hi ,
>
> Is there a way to validate variable values while debugging any python
> code.Run below example  in debugging mode and i would like to know the
> value of c (I know print is an option) with any other option other than
> printing.
> In C# or some other tools we can verify each statement and values. Is
> there way to check each statement in python code like in c#.
>
> Ex:
> def method()
>   a = 20
>   b =30
>   c =  a + b
>
>
> Best Regards,
> Chanadn
>
> --
> http://mail.python.org/mailman/listinfo/python-list
>
>
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to