javacard-debug-Debugging the HelloWorld Sample from the Command Line

本文档详细介绍了如何通过命令行来调试JavaCard的HelloWorld示例。首先,在命令提示符窗口中导航到相应目录并启动模拟器。接着,在另一个命令提示符窗口中修改配置文件以生成调试信息。然后,构建应用并执行APDU脚本,创建输出文件。使用特定命令重启模拟器,并启动调试代理。最后,连接到本地主机的8000端口进行Java调试,设置断点并观察APDU命令触发断点的情况。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

To debug the HelloWorld sample from the command line:

  1. Open a Command Prompt window and perform the following:
    1. Navigate to the JC_HOME_SIMULATOR\bin directory.
    2. Start the simulator by entering the following command at the command prompt:

      cref –o hello.eeprom

      Note:

      The -o command line option instructs cref to save the EEPROM data to the hello.eeprom file before terminating.

  2. Open a second Command Prompt window and perform the following:
    1. Navigate to the JC_HOME_SIMULATOR\samples\classic_applets\HelloWorld\applet directory.
    2. Open the applet.opt file in a text editor and add a new line with -debug option. This option will be passed to the converter to generate debug information.
    3. At the command prompt, invoke ant with a target set to all. The output file
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值