Fix MyEclipse cannot display variable value problems while debugging (Debug)

Source: Internet
Author: User

Fix MyEclipse cannot display variable value problems while debugging (Debug)

Suddenly discovered that MyEclipse cannot display variable values when the mouse is placed over a variable while debugging

Ctrl+shift+d actually hint cannot be resolved

The most ways to find the Internet are

Window->preferences->java->editor->hovers [Variable Values] will be selected, assuming [Combined Hover] has been checked, cancel and tick [ Variable Values]

Such a method should not apply to my problem, because now my [Combined Hover] has been checked. But debug can see the value normally.

So the online continue to find ways, the results finally found!

Right-click Project->properties->java compiler-> Select the Add variable attributes to generated class (used by the debugger) option to To

This involves the Java code compilation problem, the simple point is that you want to debug the class file does not include the localvariabletable attribute table, the purpose of this check the Java source code compiler when compiling Java source code Add local variable information to the class file, i.e. the volume of the class file becomes larger

Fix MyEclipse cannot display variable value problems while debugging (Debug)

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.