Fortran Is an IDE Necessary for Debugging Fortran Code?

  • Thread starter Thread starter Saladsamurai
  • Start date Start date
  • Tags Tags
    Eclipse Fortran
Click For Summary
The discussion centers on troubleshooting issues with building a Fortran project in Eclipse after switching from C++. The user experiences difficulties related to the Makefile, which is empty, and questions its necessity, noting that modern languages often do not require explicit Makefiles. The conversation reveals that the user has gfortran installed but faces a PATH environment issue, preventing Eclipse from locating the compiler. Suggestions include running Eclipse from the terminal to inherit the correct PATH and ensuring the correct directory is set for building the project. The thread highlights the importance of correctly configuring the development environment for successful compilation and debugging of Fortran code.
  • #61
AlephZero said:
An IDE doesn't debug your code for you.

You debug code by thinking. and playing with an IDE is often a distraction from that.

Of course you need a debugger to tell you the basic information like where your code crashed. But 99% of the time you can get all the information you need from a core dump and a stack trace, wthout the pretty graphics.

I AlphaZero! :smile: I was just messing around with XCode and I noticed the term GDB everywhere. So I looked it up. It's a debugger! So yes, I understand now that an IDE is not a debugger.

So let's say for a second that I want to get into programming without an IDE. So I would need to learn about these things that you mentioned: core dump, stack trace and probably other things as well. Are these things that are generated by the 'debugger' (e.g. GDB)?
 
Technology news on Phys.org
  • #62
AlephZero said:
An IDE doesn't debug your code for you.

You debug code by thinking. and playing with an IDE is often a distraction from that.

Of course you need a debugger to tell you the basic information like where your code crashed. But 99% of the time you can get all the information you need from a core dump and a stack trace, wthout the pretty graphics.

I kind of like point-and-click, multiple-views and language-sensitive-keyboard-shortcuts to make it easier to find compiler errors and to debug code. :)

To find problems in mathematical formulas I agree that an IDE tends to distract.
 

Similar threads

  • · Replies 17 ·
Replies
17
Views
4K
  • · Replies 4 ·
Replies
4
Views
3K
  • · Replies 8 ·
Replies
8
Views
5K
  • · Replies 59 ·
2
Replies
59
Views
11K
  • · Replies 16 ·
Replies
16
Views
2K
  • · Replies 29 ·
Replies
29
Views
6K
  • · Replies 16 ·
Replies
16
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 2 ·
Replies
2
Views
3K