JavacardOS will not accept order any more, please contact our partner Feitian online Store:
https://ftsafe.en.alibaba.com/index.html
https://ftsafe.en.alibaba.com/index.html
Some tips for JCIDE - JCIDE Debugger
Some tips for JCIDE - JCIDE Debugger
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:
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.
Re: Some tips for JCIDE - JCIDE Debugger
The Debugger is very powerful.
A good develop tool.
A good develop tool.
-
- Posts: 7
- Joined: Mon Oct 03, 2016 4:10 am
- Points :96
- Contact:
Re: Some tips for JCIDE - JCIDE Debugger
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
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.
Re: Some tips for JCIDE - JCIDE Debugger
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."
"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
-
- Posts: 7
- Joined: Mon Oct 03, 2016 4:10 am
- Points :96
- Contact:
Re: Some tips for JCIDE - JCIDE Debugger
Tanks Tarantino, its working fine now 

-
- Posts: 1
- Joined: Fri Nov 23, 2018 7:27 am
- Points :12
- Contact:
Re: Some tips for JCIDE - JCIDE Debugger
Great article. I clear all my douts. Thanks




Re: Some tips for JCIDE - JCIDE Debugger
Hi!
Excellent ! I got useful information here. Thank you!
Excellent ! I got useful information here. Thank you!
Re: Some tips for JCIDE - JCIDE Debugger
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?
Re: Some tips for JCIDE - JCIDE Debugger
Thank you
Who is online
Users browsing this forum: No registered users and 31 guests