cancel
Showing results for 
Search instead for 
Did you mean: 

Web Dynpro Debugging

bjorn-henrik_zink
Active Participant
0 Kudos

Hi,

can anyone tell me whether of not it is possible to add Watchpoints in the Web Dynpro debugger. I found the Add Java Watch Expression, but how do I make a watchpoint out of that?

Example:

I only what to break when a counter hits 10. How can I achieve this in the Web Dynpro debugger? ... please provide concrete code ...

Any help is greatly appreciated.

THANKS

Accepted Solutions (1)

Accepted Solutions (1)

bjorn-henrik_zink
Active Participant
0 Kudos

Hi,

thanks for the answer, but that is exactly what I try <b>not</b> to do!

I would like to add a watchpoint without changing anything in the source code.

I apologize if I did not express myself clearly in the previous post.

former_member182372
Active Contributor
0 Kudos

Hello Elvez,

let say you have a code

for (int i = 0; i < 10; i++) {
	System.out.println("zzzzzzzzzzzzzzz");
	System.out.println(i);//breakpoint here when i==5
}

and you would like to stop when i is 5.

Set breakpoint in

System.out.println(i);

right click on breakpoint in left area of source window and select "Breakpoint Properties...". Check "Enable conditions" and input to "Condition:" i==5. Check "condition is 'true'".

Best regards, Maksim Rashchynski.

Answers (1)

Answers (1)

Former Member
0 Kudos

HI Elvez,

The following link will help you to debug your webdynpro application.

http://help.sap.com/saphelp_nw04/helpdata/en/be/cffcb407c67842b122bd1296dc810f/frameset.htm

You needn't write any "code" for this. Just check if the counter is 10, then write some void statement. Then set the break point to this line. This will serve your purpose.

if(counter==10)

String nothing =""; // add breakpoint here

Hope this helps,

Best Regards,

Nibu.