- #36
I like Serena
Homework Helper
MHB
- 16,336
- 258
Perhaps you could select HelloWorld2 Debug in the project explorer in the left window?
And then perhaps click the button Run?
And then perhaps click the button Run?
I like Serena said:Perhaps you could select HelloWorld2 Debug in the project explorer in the left window?
And then perhaps click the button Run?
I like Serena said:Perhaps you can show the Run Configurations screen that you used?
It appears that the first edit field (where you had C/C++ Application before) was not filled properly...
I like Serena said:Ah, I'm afraid the Play button only works after the first time that you've succesfully run the application.
It's a sort of most-recently-run menu option.
The first time round it won't do anything useful.
**** Build of configuration Debug for project HelloWorldProject ****
make all
Building file: ../HelloWorldSource/HelloWorld.for
Invoking: GNU Fortran Compiler
gfortran -funderscoring -O0 -g -Wall -c -fmessage-length=0 -o "HelloWorldSource/HelloWorld.o" "../HelloWorldSource/HelloWorld.for"
Finished building: ../HelloWorldSource/HelloWorld.for
Building target: HelloWorldProject
Invoking: MacOS X Fortran Linker
gfortran -o "HelloWorldProject" ./HelloWorldSource/HelloWorld.o
Finished building target: HelloWorldProject
**** Build Finished ****
I like Serena said:"Run As / Local Fortran Application" should be fine.
I like Serena said:Can you right-click the binary HelloWorldProject and select Run configurations?
Ok. Should I 'Apply' or 'Run' ? I am thinking Apply, then Run if necessary.I like Serena said:Yep. Try Browse all the way to the binary.
Btw, Search project should work, but we'll see... just keep an eye out for weird stuff.
I like Serena said:Yeah, do Apply first and then Run.
What is the path to your binary?
Does it contain a space?
/Users/saladsamurai/Documents/workspace_PTP/HelloWorldProject/Debug/HelloWorldProject
I like Serena said:Cheers!
AlephZero said:Or, you could save yourself a lot of grief by
1. Learn how to use "make"
2. Learn how to configure your favorite text editor to run "make" with a single keystroke
3. Never use an IDE again ...
Everybody who writes an IDE seems to have their own ideas about what is "easy and intuitive". And none of them ever match MY ideas about what is easy and intuitive!
Saladsamurai said:Indeed! How do you debug without an IDE?
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.
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.