Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #52524

RE: Verifying Variable value

From "Prasad, Ramit" <ramit.prasad@jpmorgan.com.dmarc.invalid>
Subject RE: Verifying Variable value
Date 2013-08-14 16:36 +0000
References <1376475131.60391.YahooMailNeo@web190502.mail.sg3.yahoo.com>
Newsgroups comp.lang.python
Message-ID <mailman.579.1376498218.1251.python-list@python.org> (permalink)

Show all headers | View raw


chandan kumar 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

In addition to pdb, I would imagine most Python IDEs would support debugging in this manner.

pydev: http://pydev.org/manual_adv_debugger.html
Wing: http://wingware.com/wingide/debugger
Pycharm: http://www.jetbrains.com/pycharm/webhelp/running-and-debugging.html

This actually has a nice table of some IDEs for Python. See which ones
have a 'Y' under the PD column.
http://stackoverflow.com/questions/81584/what-ide-to-use-for-python


~Ramit



This email is confidential and subject to important disclaimers and conditions including on offers for the purchase or sale of securities, accuracy and completeness of information, viruses, confidentiality, legal privilege, and legal entity disclaimers, available at http://www.jpmorgan.com/pages/disclosures/email.  

Back to comp.lang.python | Previous | Next | Find similar | Unroll thread


Thread

RE: Verifying Variable value "Prasad, Ramit" <ramit.prasad@jpmorgan.com.dmarc.invalid> - 2013-08-14 16:36 +0000

csiph-web