简体   繁体   中英

Object inspections in Python 3.4 IDLE debugger on Windows

I am new to Python. I am using the Python IDLE Debugger on Windows. Is there a way to inspect object attributes in the debugger? The debugger only shows object address/type.

A solution I tried was to create global variables and assign object attributes to them. The debugger then shows global variables. This works for mutable types such as list, but for immutable type such as int, it shows the value at assignment only. Is there a way to bind a global name to a global object's int attribute?

To close the loop on this, based on responses received:

  • IDLE debugger does not support object inspection in the pop-up window
  • Thanks Terry Jan Reedy for putting it on list for future potential improvements. The IDLE is a big help to new Python programmers

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM