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

Debuging charachter variables

jaeger0
Beginner
498 Views
Several times, when I was debugging and watching character variables I asked me if there is a posibility to
watch the ASCII-code value of a character variable, instead the character itself.
Sometimes I want to know, which binary value has the character variable.
0 Kudos
1 Solution
Jugoslav_Dujic
Valued Contributor II
498 Views
Quoting - jaeger0
Several times, when I was debugging and watching character variables I asked me if there is a posibility to
watch the ASCII-code value of a character variable, instead the character itself.
Sometimes I want to know, which binary value has the character variable.

C++ Watch Window Format Specifiers also work for Fortran, for the most part. I use ",x" often -- it should also work for strings.

View solution in original post

0 Kudos
1 Reply
Jugoslav_Dujic
Valued Contributor II
499 Views
Quoting - jaeger0
Several times, when I was debugging and watching character variables I asked me if there is a posibility to
watch the ASCII-code value of a character variable, instead the character itself.
Sometimes I want to know, which binary value has the character variable.

C++ Watch Window Format Specifiers also work for Fortran, for the most part. I use ",x" often -- it should also work for strings.
0 Kudos
Reply