Visible to Intel only — GUID: GUID-C6DBF0BE-A0C7-4114-A921-DA974B3DF839
Visible to Intel only — GUID: GUID-C6DBF0BE-A0C7-4114-A921-DA974B3DF839
Debugging Trusted Applications
Debugging the source code of your trusted application is available only when the trusted application is executed in the emulation environment.
Before you can debug a trusted application, it must be built and packaged for debugging. In Eclipse*, when you click the Build and Package DAL Project button in the Intel® DAL menu, the dialog that opens has a checkbox For Debugger. Select this option when building and packaging.
Notes: • The resulting package is Workspace\ProjectName\bin\ProjectName -debug.dalp. Be sure to change the trusted application path in your host software accordingly. • When packaging for debug, the open session is delayed for 20000 msec to enable the debugging of the onInit function as well. • The Applet.debugger.timeout property in the manifest defines the timeout of the debugger in milliseconds.
Source Level Debugging
When debugging a project, all regular Eclipse debugging options are available in an emulated environment. All of the output is viewable in Microsoft Visual Studio*, Eclipse and Intel DAL Generic Host Application console panes.
The output display and source level debugging are relevant only when running a trusted application in an emulated environment.
- Insert a breakpoint at the desired location in your trusted application.
- In Eclipse, click Debug.
Eclipse packages your application for debugging, launches Emulauncher and executes your selected run option. When the line with the breakpoint is called, you are asked to switch to Debug Perspection. Click Yes.
Now you can debug as usual.
Connecting to an Already Running Session
If you already have a session open, you can connect to it. Place a breakpoint in the desired location and click DAL ► Connect to DAL Debugger (or click the Connect to DAL Debugger button (). Eclipse will automatically switch to Debug Perspective and you will be able to debug as usual.
Note: To debug the onInit function, you need to click DAL ► Connect to DAL Debugger immediately after the host application performs the open session of the trusted application.