Documentation



Java Card 3 Platform Development Kit User Guide, Classic Edition

Running the Debug Proxy from Eclipse

From Eclipse, you can run the debug proxy to set breakpoints, get or set variable values, and debug a library.

These steps are an overview of how to debug an application from Eclipse.
The Java Card plug-in for Eclipse must already be installed.
  1. Create (or import) your Java Card project, making sure that debugging information is generated when the project is built.
  2. Create a Java Card debug configuration with your project settings:
    • You can specify scripts to be executed when the simulator starts.
    • Additionally, if you want to debug code from one or more libraries (packages without applet implementation), you can identify library cap file paths in the Additional cap files for proxy field. The cap path of the applet is automatically added; you do not need to identify it.
    • cap-* scripts for libraries should be executed before cap-* scripts for the applet if the EEPROM of cref is empty at the start of the debug session.
  3. Once the debug session starts, cref starts in debug mode, the script(s) are executed, the debug proxy is started, and the Eclipse debugger connects to the debug proxy.
    You can experiment with the debug perspective and look at the debug console for debug proxy output.
  4. You can set breakpoints, and execute scripts.
Go to Debugging HelloWorld from Eclipse for detailed instructions for debugging the HelloWorld sample
Close Window

Table of Contents

Java Card: 3 Platform Development Kit User Guide, Classic Edition

Expand | Collapse