[Eclipse plug-in Development Guide] 2.6 debug a product

Source: Internet
Author: User

In the process of producing products, we need to debug a problem or use this method to better understand the code, instead of simply reviewing the source code. You can use the runtime Workbench to accurately determine what will happen when the product is scaled. This will help solve these problems.

2.6.1 Configuration Creation

In this process, the first step is to create a configuration in the product that can be debugged. Select debug...

Figure 2-21 Debug menu

In the pop-up box (Figure 2-22), select eclipse application and click New. Enter "favorites" as the configuration name.

Figure 2-22 new configuration Definition

2.6.2 plug-in selection

After completing the preceding steps, select the plug-in (plug-ins) tag, and then select the single-choice button choose plug-ins and fragments to launch from the List (Figure 2-23. In the plug-in list, check that the favorites plug-in is selected in the workspace plug-ins entry, rather than in the external plug-ins entry.

Figure 2-23 plug-in selection in configuration

Note:

The plug-in project specifies that the priority in the configuration is higher than that of the plug-ins installed in eclipse. If you have a plug-in project that is the same as the plug-in that has been installed in eclipse, and you want to run the installed plug-in the runtime workbench, do not select the plug-in project in the workspace plug-ins entry, but select the installed plug-in the external plug-ins entry.

 

 

2.6.3 run the runtime workbench

In the runtime workbench, click the debug button to run eclipse application, so that you can debug the product. Now that you have defined the configuration, let's use it. On the debug toolbar menu, choose runtime workbench from the menu, instead of opening the configuration page.

After clicking the debug button on the Configuration Wizard Page or selecting favorites from the debug toolbar menu, eclipse opens the second workstation window (the runtime workstation and the Development workstation are completely different ). This runtime workbench window executes the code of the Development workbench project. Setting a breakpoint on the Development workbench will affect the runtime workbench (Note: The running line will be interrupted and the user can debug it ).

 

Note: This article details how to configure debug, but it may be easier for users to use it. Right-click your plug-in project in the Navigator or project explorer, you can automatically generate these items by running them directly. Of course, if the configuration copied in the article (such as the same identifier as the installed plug-in) still needs to modify the existing configuration.

This article is the original article of eclipselight.org (eclipse light). For more information, see the source.
Fixed Link: http://www.eclipselight.org/eclipse-plugin-tutorial/708/

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.