Page 1 of 1

Some tips for JCIDE - JCIDE Debugger

Posted: Wed Sep 02, 2015 2:00 am
by product
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:


Re: Some tips for JCIDE - JCIDE Debugger

Posted: Tue Dec 01, 2015 1:40 am
by predators
The Debugger is very powerful.
A good develop tool.

Re: Some tips for JCIDE - JCIDE Debugger

Posted: Tue Nov 08, 2016 3:05 am
by initialdhi
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

Re: Some tips for JCIDE - JCIDE Debugger

Posted: Tue Nov 08, 2016 3:21 am
by Tarantino
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
        ...
       

Re: Some tips for JCIDE - JCIDE Debugger

Posted: Tue Nov 08, 2016 5:20 am
by initialdhi
Tanks Tarantino, its working fine now :)

Re: Some tips for JCIDE - JCIDE Debugger

Posted: Fri Nov 23, 2018 7:31 am
by phpinterview1991
Great article. I clear all my douts. Thanks
:) :) :)

Re: Some tips for JCIDE - JCIDE Debugger

Posted: Mon Jan 20, 2020 3:09 am
by Prajaktaa
Hi!
Excellent ! I got useful information here. Thank you!

Re: Some tips for JCIDE - JCIDE Debugger

Posted: Wed Dec 16, 2020 6:38 am
by LozCodes
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

Posted: Wed Dec 16, 2020 6:55 am
by kuafu
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

Re: Some tips for JCIDE - JCIDE Debugger

Posted: Tue Jan 12, 2021 7:15 am
by LozCodes
Thank you