× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



----- Message from Dan <dan27649@xxxxxxxxx> on Tue, 8 Nov 2016 17:
03:56 -0500 -----

To:

Websphere Development Studio Client for iSeries <wdsci-l@xxxxxxxxxxxx>

Subject:

[WDSCI-L] Debug - possible to break when variable contains a certain
value?

I see "watch breakpoint", which triggers when the value changes, but I
am
looking for a way to break once a given variable contains a certain
value.

If the above is possible, I'd also like to know if the comparison to
trigger the break can use the "contains" operator (not "equal") or
something similar to SQL's LIKE predicate.


If I recall correctly, the expression is language dependent. i.e., It can
be any expression acceptable to the language of the code you are
debugging. For example in an RPG program, you should be able to enter:

%scan('findthis' : VariableToSearch) > 0

This should trigger the breakpoint whenever VariableToSearch has the
string 'findthis' in it.

As I started this answer with, this is an 'If I recall correctly' thing.
My memory is usually pretty good, but there are times...

Michael Quigley
Computer Services
The Way International
www.TheWay.org

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.