LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 11-10-2015, 12:36 AM   #1
terry2179
LQ Newbie
 
Registered: Nov 2015
Location: Washingto, D.C.
Distribution: kubuntu
Posts: 6

Rep: Reputation: Disabled
python debuggers capable of viewing objects


I currently use Linux Mint 17.2 - Cinnamon and I am currently learning Python version 3.4.3. I am also currently evaluating the Sublime Text 2 text editor.
Is anyone aware of a python debugger/IDE that is capable of inspecting objects/classes?
 
Old 11-10-2015, 12:44 AM   #2
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,848

Rep: Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309
what do you mean by inspecting? what about python itself? https://docs.python.org/2/library/pdb.html
 
Old 11-10-2015, 01:25 PM   #3
terry2179
LQ Newbie
 
Registered: Nov 2015
Location: Washingto, D.C.
Distribution: kubuntu
Posts: 6

Original Poster
Rep: Reputation: Disabled
pan64,
t P
Objects/classes can contain variables. I would like to be able to view the values of various variables within an object. So far idle3 will only show the address of the object. I will look more closely at PDB. However, my current impression of PDB is that it is not much better than inserting print statements in code. Additionally it looks like PDB requires the insertion of a lot of unwanted code. What I would like to have is a GUI debugger similar to Netbeans. Unfortunately Netbeans and Python don't seem to jell well together. Also it looks like Python support has been dropped in Netbeans as of version 8.1.
 
Old 11-10-2015, 03:06 PM   #4
dugan
LQ Guru
 
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 11,225

Rep: Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320
WinPDB
 
Old 11-11-2015, 01:54 AM   #5
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,848

Rep: Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309
http://kodi.wiki/view/HOW-TO:Debug_P...s_with_Eclipse (you may ignore the XBMC, Kodi related parts).
Just a comment: the only real interface I know is the debug interface python itself, that is used by pdb (and all the others).
 
Old 11-29-2015, 12:59 AM   #6
terry2179
LQ Newbie
 
Registered: Nov 2015
Location: Washingto, D.C.
Distribution: kubuntu
Posts: 6

Original Poster
Rep: Reputation: Disabled
I took the time to look into PDB and found that PDB is capable of inspecting objects/classes.
 
Old 11-30-2015, 01:03 AM   #7
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,848

Rep: Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309Reputation: 7309
glad to help you.
if you really want to say thanks just click on yes
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Python unittest objects don't persistence between tests 0x53h Programming 3 05-12-2014 11:48 AM
python - can I create objects with user input tavi Programming 5 08-02-2011 02:03 PM
[SOLVED] Python cannot concatenate 'str' and 'NoneType' objects madsovenielsen Programming 4 06-24-2010 01:44 PM
python: list of class-objects? Valkyrie_of_valhalla Programming 3 08-24-2008 06:26 AM
Is Python as capable as Perl for system administration? johnMG Programming 10 02-07-2005 02:11 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 04:20 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration