Setting breakpoints in debug

100 pts.
Tags:
AS/400 - DDS
breakpoints
debug
Debugging
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: October 19, 2009  4:55 PM
UPDATED: October 19, 2009  8:04 PM

Answer Wiki

Thanks. We'll let you know when a new response is added.

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

Discuss This Question: 2  Replies

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
  • Lemonjello
    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 <> ' '?
    100 pointsBadges:
    report
  • Lemonjello
    Thank you. That's exactly what I needed.
    100 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following