× 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.


  • Subject: RE: working with the value of integer variables in debug
  • From: Joel Fritz <JFritz@xxxxxxxxxxxxxxxx>
  • Date: Tue, 11 May 1999 08:50:22 -0700

Here's an example of integer problems with a silly test program:
****************************************************************************
*******
                            Display Module Source

 

Program:   INTLOOP        Library:   JEFTST         Module:   INTLOOP

     1           *MODULE ENTRY AND MAIN PROCEDURE ENTRY

     2          1 Dindex            s              5u 0

     3          2 Dnumber           s              5  0

     4          3 C                   do        10            index

     5          4 C                   eval      number = index

     6          5 C                   enddo

     7          6 C                   eval      *inlr = *on

     8           *MAIN PROCEDURE EXIT

 

 

 

 
Bottom
Debug . . .   BREAK 5 when index = 4

 

F3=End program   F6=Add/Clear breakpoint   F10=Step   F11=Display variable

F12=Resume       F17=Watch variable   F18=Work with watch   F24=More keys

*******Type compatibility error occurred.*******


****************************************************************************
************
Note that index is defined as an unsigned integer.  If I try to set a
conditional breakpoint on the same line based on the value of number, it
works fine.  Displaying the value of integers works fine, but trying to
change them also results in the type compatibility error.  I haven't tried
anything with %found in debug yet, we just went to v4r3 last week and I've
just started using it in programs.  Seems to me I've had problems with
looking at the values returned by some built in functions, but I can't
remember which ones. 

 
-----Original Message-----
From: John Enzien [mailto:jenzien@fairpoint.com]
Sent: Tuesday, May 11, 1999 6:12 AM
To: MIDRANGE-L@midrange.com
Subject: RE: working with the value of integer variables in debug


I tried this with an ILE program and had no problems.  Had a field defined
as 2/0 worked fine.  I would like to know if there is a way to check an
expression such as %found(filename) in the debugger.  Let me know if you can
shed some more information on the problem you are having.

John Enzien
Fairpoint Communications

-----Original Message-----
From:   owner-midrange-l@midrange.com [mailto:owner-midrange-l@midrange.com]
On Behalf Of Joel Fritz
Sent:   Monday, May 10, 1999 4:54 PM
To:     'MIDRANGE-L@midrange.com'
Subject:        working with the value of integer variables in debug

I'm sure I'm missing something obvious, like maybe not reading it in the
manual, but I haven't found a way to do much with the value of an integer
variable while running a program in debug.  When I try something like "break
100 when x = 5" on the debugger command line (let's say x is an integer loop
counter,) I get a type compatibility error.

I realize I shouldn't be running programs in debug that I could be desk
checking, but...I am a moral degenerate.<g>
TIA


###########################################
The above is my personal opinion and is not intended to represent good
programming practice or the product of a sound mind.

Joel Fritz
+---
| This is the Midrange System Mailing List!
| To submit a new message, send your mail to MIDRANGE-L@midrange.com.
| To subscribe to this list send email to MIDRANGE-L-SUB@midrange.com.
| To unsubscribe from this list send email to MIDRANGE-L-UNSUB@midrange.com.
| Questions should be directed to the list owner/operator:
david@midrange.com
+---

+---
| This is the Midrange System Mailing List!
| To submit a new message, send your mail to MIDRANGE-L@midrange.com.
| To subscribe to this list send email to MIDRANGE-L-SUB@midrange.com.
| To unsubscribe from this list send email to MIDRANGE-L-UNSUB@midrange.com.
| Questions should be directed to the list owner/operator:
david@midrange.com
+---
+---
| This is the Midrange System Mailing List!
| To submit a new message, send your mail to MIDRANGE-L@midrange.com.
| To subscribe to this list send email to MIDRANGE-L-SUB@midrange.com.
| To unsubscribe from this list send email to MIDRANGE-L-UNSUB@midrange.com.
| Questions should be directed to the list owner/operator: david@midrange.com
+---


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.