Setting breakpoints in debug
50 pts.
0
Q:
Setting breakpoints in debug
I know you can set breakpoints without using F6 by typing break and the line number at the debug screen. I need to know how to set up a conditional break point. I essentially need to know exactly when a field is being populated. How would something like this be correctly written: "break when badd3 <> *blanks"?



I need to know exactly when this field is populated when the program is called.



Any help would be appreciated.

Thank you.

PS. According to another RPG programmer I know setting up a conditional breakpoint involves the watch-list, but he doesn't remember anything more than that. What is the watch-list?


Software/Hardware used:
AS400
ASKED: Oct 19 2009  4:55 PM GMT
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
0
24610 pts.
0
A:
 RATE THIS ANSWER
0
Click to Vote:
  •   0
  •  0
  • AddThis Social Bookmark Button
F13, while in debug mode, will allow you to add Line # and Condition' .
------------------------------------------------------
No line number... ok that's not called a break
Issue the command WATCH MYVAR (put your variable name in here)
Or point at variable and press F17

when the variable changes the program will pause like it does on a break.
press F18 to see the values of all watched variables.
Phil
Last Answered: Oct 19 2009  7:49 PM GMT by Philpl1jb   24610 pts.
Latest Contributors: Cunninjoe   310 pts.
0
0
Discuss This Answer:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _



_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

Lemonjello   50 pts.  |   Oct 19 2009  6:19PM GMT

I was hoping I wouldn’t need a line number. If I absolutely have to I guess I can place it where the the field is defined.

What I need most is the syntax. Exactly how does the debugger like it’s commands?

where badd3 <> *blanks?
badd3 <> *blanks?
badd3 <> ‘ ‘?

 

Lemonjello   50 pts.  |   Oct 19 2009  8:04PM GMT

Thank you. That’s exactly what I needed.

 
0