Multiple conditions in debug breakpoints

135 pts.
Tags:
AS/400
Debugging
Hello. Is there a way to add multiple conditions for setting breakpoints in debug sessions? It would be very helpful especially in nested if or do while statements. Thank you.
ASKED: March 13, 2008  3:28 AM
UPDATED: February 19, 2014  1:33 AM

Answer Wiki

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

Logical operators can’t be used to set conditional breakpoint. We can’t have multiple conditions for the same breakpoint.

=================================================================

The debug BREAK command allows a WHEN clause that specifies a boolean expression. A breakpoint that I just set had the condition WHEN &AMODE > 0 AND &AMODE > 1. I realize that that doesn’t make good sense, but it’s purely for showing how it’s done. The program stopped at the breakpoint with &AMODE = 2.

Tom

Discuss This Question: 1  Reply

 
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
  • Vsevilod
    Thanks, Tom! This is the answer I was looking for. 
    135 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