Python Development tools Wing IDE use tutorials to view debug data __python

Source: Internet
Author: User

The Wing IDE has a very useful feature that allows you to view debug data values in a variety of ways when dealing with complex bugs. This feature is specifically implemented by the Watch tool:

Viewing data values

Right-click the local value in the Stack data tool when an exception occurs in printashtml. This displays the following options to view the values over time:

Watch by Symbolic Path-will cause the wing IDE to look for messages with symbolic names on the current stack. When you select this option, the watch panel will display an entry:

News <list 0x40401eec>

(object IDs are certainly different)

Can be used to quickly access numeric values without having to dig a long list of local or global variables in the stack Data view.

Because you have a postal store in a debugging session, you are logged in the Watch tool before the user clears it.

 

Watch by Direct Reference-This causes the wing IDE to hold a reference to a specific object instance (list). It will be displayed instantly in the Watch tool. If the reference count for an object instance is zero, the Wing IDE reports <value not found>.

This is useful for viewing objects when you are debugging a section of code that does not have a reference or cannot reach a reference instance.

Because object references are meaningless when debugging a session, these entries are removed from the Watch tool once the debug process terminates.

Watch by Parent Slot -combines the above two modes to guarantee a reference to the source portion of the selected value and to find the child part through the symbol name.

If you try it in a local event, the user looks at the value in a particular local directory, rather than in the current stack frame's event.

This technique is useful when working with object-oriented code, which can be used to observe specific properties of specific object instances.

Because the source part is tracked by object references, the entries are also purged from the Watch tool once the debugging process is complete.

Watchby module Slot-This option can be used to observe values inside a module by looking up the module name in Sys.modules and tracking the value. This option is available only if you right-click the value of the Modules module tool.

Because these will work during the debugging session, they will remain in the Watch tool before being deleted by the user.

View an expression

Users can also view any Python expression in the watch panel. Just click on the blank part of the watching column and enter the expression you want to see:

When debugging is still stuck in the printashtml anomaly, enter:

NEWS[-1]

If a value is not determined, the last item of the message is displayed whenever there is one of the <undefined> or <error evaluating>.

The expression is recorded in all debugging watch tools until it is deleted by the user.

Wing IDE Latest edition official recommended download address

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.