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.
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 device properties which, by default, both are 8000.
The Debug Configuration has an option to start the simulator, inside Eclipse, for you.
This option can be disabled to just debug the applet and execute selected commands, the
plug-in will connect to an already running simulator. The running simulator must match
the configuration made in the selected device (ex. Sample_Device
) for
the current project (Communication type, Port number, Config file,
Debug Port).
Note:
If the selected device 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.