Debugging a Java Card Applet in Eclipse Plug-in
From Eclipse, you can run the debug proxy to set breakpoints, get or set variable values, and debug a library using the Java Card Plug-in.
Debug Configuration
Debug Configuration can be used to automate how commands are run before sending the commands to hit the breakpoints. You can specify a list of commands to be executed.
In the JC Debug Configuration, under Connect tab > Connection Properties -> Port the value must match the Proxy to IDE port from the Java Card Development Kit Simulator properties which, by default, are both 8000.
The Debug Configuration has an option to start the Simulator, inside
Eclipse, for you. This option can be disabled to allow the Plug-in to use an already
running Simulator in debug mode. The running Simulator must match the configuration made
in the selected Simulator (ex. Java_Card_Simulator_1) for the current
project (Port number, GP ISD AND SCP03 Keys Config file, Debug
Port).
Note:
If the selected Java Card Development Kit Simulator for the current project has set a Platform IP Address other than localhost, this option is disabled.Note:
The Debug Configuration also allows you to run a client application externally (option External Client). That is, if you select this option, after the debug starts you can use any client application for sending APDUs to the Simulator. From the Eclipse side, the commands will be disabled.