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

VS2005 Conditional Breakpoint w/ Boolean Operator

pguillerottrane_com
633 Views

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 Kudos
1 Solution
onkelhotte
New Contributor II
633 Views

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

View solution in original post

0 Kudos
3 Replies
bmchenry
New Contributor II
633 Views
try (BandGeos(BandIndex).strBundleSize(1) == '250 ') .and. (BandGeos(BandIndex).strBundleSize(2) == '230 ')

not sure bout that && operator
0 Kudos
onkelhotte
New Contributor II
634 Views

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 Kudos
pguillerottrane_com
633 Views
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 Kudos
Reply