Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
29246 Discussions

VS2005 Conditional Breakpoint w/ Boolean Operator

pguillerottrane_com
638 Visites

I've been trying to set a conditional breakpoint with a boolean operator but I just can't make it work.

The following works (i.e. the breakpoint is triggered):

BandGeos(BandIndex).strBundleSize(1) == '250 '

But if I add a second condition the breakpoint is not triggered:


(BandGeos(BandIndex).strBundleSize(1) == '250 ') && (BandGeos(BandIndex).strBundleSize(2) == '230 ')

What am I doing wrong?

Regards,
Philippe

0 Compliments
1 Solution
onkelhotte
Nouveau contributeur II
638 Visites

As bmchenry said, you have to use a Fortran statement for your conditional breakpoint.

&& wont work because it C style, you have to use .and. , .or. , .ge., >=etc.

Markus

Voir la solution dans l'envoi d'origine

0 Compliments
3 Réponses
bmchenry
Nouveau contributeur II
638 Visites
try (BandGeos(BandIndex).strBundleSize(1) == '250 ') .and. (BandGeos(BandIndex).strBundleSize(2) == '230 ')

not sure bout that && operator
0 Compliments
onkelhotte
Nouveau contributeur II
639 Visites

As bmchenry said, you have to use a Fortran statement for your conditional breakpoint.

&& wont work because it C style, you have to use .and. , .or. , .ge., >=etc.

Markus

0 Compliments
pguillerottrane_com
638 Visites
That's the "==" that threw me off and make me try C/C++ boolean operators. I should have tried ".EQ." in the first place.

Thanks all,
Philippe
0 Compliments
Répondre