Debugger issue of Fortran program in Mac Clion.
Answered
I was using Clion on Mac to develop Fortran programs. For some reasons I have to use the Intel Fortran Compiler.
But when I using the default bundled debugger LLDB I can not see the variables in the debug window.
Then I tried bundled GDB, but the error as following shows:
com.jetbrains.cidr.execution.debugger.backend.gdb.GDBDriver$GDBCommandException: "....../cmake-build-debug/{my project name}": not in executable format: File format not recognized
Process finished with exit code 0
What I want is to see the variables in the debug window when debugging. Does anyone help me out?
Should I specify the custom debugger ?
Please sign in to leave a comment.
Hello!
In case of Fortran you need to use GDB, but, unfortunately, there is a problem with GDB in CLion on macOS - https://youtrack.jetbrains.com/issue/CPP-14546. Feel free to comment or upvote in order to get updates. See https://intellij-support.jetbrains.com/hc/en-us/articles/207241135-How-to-follow-YouTrack-issues-and-receive-notifications if you are not familiar with YouTrack.
Sorry for the inconvenience.