These steps show you how to debug the HelloWorld
sample. The Java Card plug-in for Eclipse must already be installed.
HelloWorld
Java Card project into your workspace. If the build doesn't start automatically, start it manually.HelloWorld
package:
HelloWorld
and src folder.
com.sun.jcclassic.samples.helloworld
.com.sun.jcclassic.samples.helloworld
and select Java Card and Package Settings.HelloWorld
project in the Package Explorer and select Debug As and Debug Configurations.HelloWorld
project directory and select the apdu_scripts\cap-com.sun.jcclassic.samples.helloworld.script
file. This script will install the applet without creating an applet instance.cref
is started in debug mode, then the script is executed, the debug proxy is started, and finally the Eclipse debugger connects to the debug proxy.HelloWorld.java
and open it. Set two breakpoints: one in the install()
method of the applet, the other in the beginning of the process()
method.
Double-click the left most space on the source code line (the line number will be to the right).
Press Ctrl + Shift + B to toggle the breakpoint (the type of breakpoint will be selected automatically depending on the source code).
Select a specific breakpoint to toggle from the Run menu.
create-*
, then select-*
(Right-click on the script and select Java Card and Execute Script).
Step*
and resume
debugger commands can be used to resume applet code execution.