Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Beginner
28 Views

Command Line READ in idb does not wait

A coworker is having problems getting idb to wait at command line READ statement.

idbc stops at the READ statement and waits for input but idb does not wait.

Is there a setting in idb that controls this?

He said the previous version of idb worked fine. 11.1 073.

Intel(R) Debugger for applications running on Intel(R) 64, Version 11.1, Build [1.2097.2.385]

Current version.

Intel(R) Debugger for applications running on Intel(R) 64, Version 12.1, Build [78.226.14]

example test code.

      PROGRAM RD_KEY

                                !   this proram is for debugging keyboard read

      IMPLICIT NONE

      CHARACTER*10 COM
      INTEGER*4 IOS

      WRITE(*,60)
 60   FORMAT(' ENTER TEST STRING>')
      READ(*,10,IOSTAT=IOS,err=20,ADVANCE='NO')COM
 10   FORMAT(A)
      WRITE(*,30)COM
 30   FORMAT(/,'keyboard entry ',A10)
      goto 40
 20   CONTINUE
      WRITE(*,50)IOS
 50   FORMAT('ERROR=',I1)
 40   CONTINUE

      END

0 Kudos
3 Replies
Highlighted
28 Views

Hi Rich, let me check with our development team whether this is a known issue and whether it may already be fixed. I'll let you know as soon as I hear back. Thanks, Rob
0 Kudos
Highlighted
28 Views

Hi Rich, the underlying issue is probably with the CIN definition in Fortran. I think if you redirect the console output to the debugger, than the GUI debugger should halt at the READ statement as well. Can you try launching idb with the command line options "–tty /dev/tty"? I think that should do the trick . Thanks, Rob
0 Kudos
Highlighted
Beginner
28 Views

That worked! He is back to fixing problems in his code. Thank You for the quick response. Rich
0 Kudos