Our Online Store have the new products: RFID antenna board. Currently it can work with JC10M24R and JCOP4 card chips.
Compared with normal cards, the antenna board module has a smaller size and fixed holes, which is easy to integrate in the IOT(Internet Of Things) project.

Some tips for JCIDE - JCIDE Debugger

JCIDE is an Integrated Development Environment designed specifically for the Java Card programming language.

Moderators: product, kuafu

User avatar
product
Posts: 106
Joined: Wed May 20, 2015 2:04 am
Points :658
Contact:

Some tips for JCIDE - JCIDE Debugger

Post by product » Wed Sep 02, 2015 2:00 am

The JCIDE debugger enables you to detect and diagnose errors in your programs running. It also allows you to control the execution of your program by setting breakpoints, suspending launched programs, stepping through your code, and watching the contents of variables.

1,Add Breakpoint:
In the editor area, directly to the line where you want to add the breakpoint, right-click, there pop-up menu and select "Add Breakpoint". And the breakpoint appears in the Breakpoints View list.


2, Watch the contents of variables:
JCIDE Debugger contains two ways of watching the contents of variables: "Quick Watch" and "Locals Watch". Select the variable you want to watch, then right-click, there pop-up menu and select "Quick Watch".


In Debugger, you can also move the pointer to the variable, it automatically pop-up a window showing the current value of the variable.


You can also watch the contents of variables from the window 'Watch' and 'Locals' , as follows:

You do not have the required permissions to view the files attached to this post. Please login first.

predators
Posts: 21
Joined: Wed Aug 19, 2015 7:18 am
Points :12
Contact:

Re: Some tips for JCIDE - JCIDE Debugger

Post by predators » Tue Dec 01, 2015 1:40 am

The Debugger is very powerful.
A good develop tool.

initialdhi
Posts: 7
Joined: Mon Oct 03, 2016 4:10 am
Points :96
Contact:

Re: Some tips for JCIDE - JCIDE Debugger

Post by initialdhi » Tue Nov 08, 2016 3:05 am

I have some problem when debug applet with JCIDE debugger ,
the problem is when i send apdu command to applet an get it with apdu.getbuffer() the data is gone? :|
like this ss
You do not have the required permissions to view the files attached to this post. Please login first.

Tarantino
Posts: 101
Joined: Wed Aug 19, 2015 1:56 am
Points :478
Contact:

Re: Some tips for JCIDE - JCIDE Debugger

Post by Tarantino » Tue Nov 08, 2016 3:21 am

If you use T=0 protocol, you need to add apdu.setIncomingAndReceive() in your code.
"This method gets as many bytes as will fit without buffer overflow in the APDU buffer following the header. It gets all the incoming bytes if they fit."

Code: Select all

...
    private void verify(APDU apdu){
         byte[] buffer = apdu.getBuffer();
        apdu.setIncomingAndReceive(); //Add this command
        ...
       
The greatest glory in living lies not in never falling, but in rising every time we fall.--Nelson Mandela

initialdhi
Posts: 7
Joined: Mon Oct 03, 2016 4:10 am
Points :96
Contact:

Re: Some tips for JCIDE - JCIDE Debugger

Post by initialdhi » Tue Nov 08, 2016 5:20 am

Tanks Tarantino, its working fine now :)


Prajaktaa
Posts: 1
Joined: Mon Jan 20, 2020 3:07 am
Points :8
Contact:

Re: Some tips for JCIDE - JCIDE Debugger

Post by Prajaktaa » Mon Jan 20, 2020 3:09 am

Hi!
Excellent ! I got useful information here. Thank you!

LozCodes
Posts: 11
Joined: Thu Oct 29, 2020 9:49 am
Points :186
Contact:

Re: Some tips for JCIDE - JCIDE Debugger

Post by LozCodes » Wed Dec 16, 2020 6:38 am

I'm having trouble putting a quick watch on a variable - when I select a variable and right click quick watch is greyed out, does anyone know how to fix this?

kuafu
Posts: 317
Joined: Thu Jun 25, 2015 2:09 am
Points :4551
Contact:

Re: Some tips for JCIDE - JCIDE Debugger

Post by kuafu » Wed Dec 16, 2020 6:55 am

LozCodes wrote:
Wed Dec 16, 2020 6:38 am
I'm having trouble putting a quick watch on a variable - when I select a variable and right click quick watch is greyed out, does anyone know how to fix this?
Please update to the latest version of JCIDE
well

LozCodes
Posts: 11
Joined: Thu Oct 29, 2020 9:49 am
Points :186
Contact:

Re: Some tips for JCIDE - JCIDE Debugger

Post by LozCodes » Tue Jan 12, 2021 7:15 am

Thank you

Post Reply Previous topicNext topic

Who is online

Users browsing this forum: No registered users and 6 guests

JavaCard OS : Disclaimer