Generally speaking, [[Managed_Virtual_Machine_(MVM)|Managed Virtual Machines]] including Yocto build system provide all the required stuff to remotely debug applications running on the target, via Eclipse/ADT. It is beyond the scope of this article to describe in detail how to use Eclipse{{efn|Please note that Eclipse is not just a debugger, it is a full-featured IDE that allows to manage and build complex projects with a powerful user-friendly graphical interface.}}. Instead, some MVM-related information are provided, in order to properly configure the host to work with DAVE Embedded Systems products. Also, classical "Hello, world!" example is detailed.
For more details about Eclipse Luna please refer to [https://projects.eclipse.org/releases/luna this page]
{{WarningMessage|text=Eclipse support has been [https://docs.yoctoproject.org/migration-guides/migration-2.7.html?highlight=eclipse removed from Yocto since Warrior release]. Releases greater than {{pageoldid|DESK-MX6-L|15794|DESK-MX6-L 1.0.0 MVM}} have not been validated nor supported.}}
{{ImportantMessage|text=The following instructions and screenshots have been taken from DESK-MX6-L MVM. Selecting the proper cross-tool chain, the same instructions are valid also for {{pageoldid|DESK-MX6UL-L|14293|DESK-MX6UL-L 1.0.1 MVM}} }}
==Eclipse integration in MVM==
No specific operations are required to run Eclipse, as shown in the following example.
By default, cross-tool chain is installed in <code>/home/dvdk/<targetname>/sdk/latest</code>. <code><targetname></code> is the name of the actual hardware platform development environment (i.e. <code>lynxdesk-mx-l</code>, <code>axelulite</code> etc.).
To configure the Cross Compiler Options, you must select the type of toolchain, point to the toolchain, specify the <code>sysroot </code> location, and select the target architecture.
* Select "Yocto Project ADT", add the cross-toolchain configuration and save the profile as your project name ("targetname" <code>desk-mx</code> in this case). Click "Apply" and "OK".
The following example shows how to build and debug classical "Hello, world!" example when working with [[AXEL_Lite_SOM/AXEL_Lite_Evaluation_Kit | AXEL ULite and SBC Lynx Embedded Linux Lite Evaluation Kit (XUELK)]]. As stated before, this example is valid for all of the Yocto-based MVMs.
This section first shows how to create an Eclipse-based project. The second part illustrates how to start a debugging session for a simple "Hello, world!" application.
For more details about Eclipse Kepler please refer to [[http://help.eclipse.org/kepler/index.jsp?topic=/]]
* Expand "Yocto Project ADT Project" and select "Hello World ANSI C Autotools Project". Add "Project name". Click "Next" and "Finish".[[File:Generic-vm-1280-eclipse6.png|800px]] * If the "open perspective" prompt appears, click "Yes" so that you are in the C/C++ perspective.
* Click on "C/C++" button on up left bar to view source files.
This section lists the steps required to start a debugging session for the applications. Before debugging remember to compile and install yours your updated binaries/libraries.
* Select "Debug Configurations" from the "Run" menu.