Before this stupid program will explode my head to the 26th time...
I have
Win 7
Eclipse Luna 4.4.0 Build 20140612-0600
Photran 8.2.1
Cygwin Devel Packages gfortran + make (used)
MinGW with g95 (installed but not used because no make.exe)
So I downloaded the Hello World example, changed it a bit
program HelloW
implicit none
integer i
i=1
print *,i
print *, "Hello MPI World"
i=i+1
print *,i
i=1000
print *,i
end program
1) So problem (or most probably a mega-feature) number one.
The default debuggers (Run->Debug Configuration->Debugger) gdbserver and minGW gbd don't work, because they need .gdbinit. I created an empty file .gdbinit, but it doesn't help. I could find no info of what must be inside.
OK, no wonder that just another Eclipse feature doesn't work. Next one:
2) As debugger I chose gdb/mi. It seems to work without .gdbinit.
I set a break point in front of integer i line.
I start the debugger but it looks like it runs till the end of the program and suspends there (the last line end program is lighted green).
Now if I press F5 it starts to move in the program step by step from the very beginning, but it needs 3 button presses to do 1 line. It first jumps forward, nothing happens, then it jumps back, and on the 3rd press it jumps forward again and execute the line (e.g. the variable i changes).
What the hell is that?
I used Fortran Compaq and Intel Visual Studio without any problems. Now I f**ck with these "free" programs for 2 weeks now, and nothing works properly. Starting from the outdated help in eclipse, to dead g95 compiler.
Related
I use Ubuntu 18.4.4 and GCC 7.5 and i downloaded eclipse installer and installed 2020.3. CDT for c++
now when i try to debug the code using step over.it works fine in main function going line by line but when it gets into called function ,step over just jumps to next break point as if it is resume.
i am new to eclipse and I do not know what is the wrong??
i found some questions with same behavior for java.
is this the same problem but with C++??
this is another question with similar content without solution Debugging in Eclipse. Moving between breakpoints
How can I step through a Perl program using Padre?
After much effort I installed CPAN Module Padre-1.00 on my home computer, which uses Windows 64bit and version 5.24.1 of Strawberry.
I also installed Padre's dependencies "Wx" and "Alien::wxWidgets", but all I can do with Padre at the moment is edit and save a Perl program, and run a Perl program from start to finish.
I see no icons for doing the normal debug activities, such as step into the next line, execute a function, and step out of a function
Can anyone help? There is a Padre web page saying you can use a Tools->Advanced option to get some additional icons on the toolbar but it doesn't work. Nor does there seem to be any key-binding for debug commands.
When I click the Padre’s "Bug" button – which supposedly puts Padre into a line-by-line debug mode – a DOS window titled "padre.exe -d " appears, and within the DOS it says "Press any key to continue".
I have seen internet comments that Padre has bugs and has not been changed in a year.
Can anyone help?. Have you found a way to run a Perl program in Padre line-by-line?
It's actually quite simple. You can launch debugger by clicking on one of the top menus:
Now, in the right panel there will be step to next and step over buttons:
A few days ago, Eclipse for C/C++ (Helios) stopped running my programs. They can be compiled with MinGW without displaying any errors. However, when the programs are run, Eclipse always get stuck at "Launching Delegate" at 70%. No matter how long I wait, the program never starts. The same happens when I try to run the program from the command line; no matter how simple the program, the command line just does nothing, as if it is waiting for the program to start.
I believed that this was just an issue with my Eclipse workspace, so I created a new workspace and tested a Hello World application, but it failed too. I reverted to an older version of Eclipse (Indigo), and a 32-bit version, but these had the same error. I even installed a different IDE, Netbeans, but it too never runs any programs. So, clearly, it's not just Eclipse. I tried reinstalling MinGW, but this also didn't help.
I have tried everything I can possibly think of. I could only find one other person with the same problem online, and theirs was never answered. Can anyone help me out with this strange issue?
I had the same problem. Always stuck at 70%. However, it turned out that somehow it can be fixed by disabling my anti-virus program, when I want to run a C/C++ program. Which I find to be quite strange.
I hope it helps.
I am writing a Perl program that uses curses for output and move the cursor, and color characters. Previously, when I was working under windows I use Komodo it was able to run an external console.
Now I work in Linux environment and use eclipse + epic. If you try to just run the script, it uses the internal console eclipse, which is very cut. You can just run the script using external tool, but I'm interested to debug using external console window. Is this possible?
Unfortunately, use of a File and /dev/pty/1 does not help in solving my problem.
The fact is that in this case it is impossible to get the characters introduced in the console through curses getch(). Always returned 1 instead code of pressed key.
Here is an answer that will take you most of the way (based on post #6 of: http://ubuntuforums.org/showthread.php?t=743131, although since then, in the "Indigo" and "Juno" versions of Eclipse, things have changed somewhat, and this answer is up to date):
Go to "Run -> Debug configurations". Click on the (fourth) "Common" tab. Go to the third frame from top, and there, check-mark the checkbox which says: "File". Enter the file name of the console window you want your output in.
I downloaded Eclipse for C++ v 3.6 32-bit version on my Windows 7 64-bit OS.
I can build and run my code, but I cannot debug.
I am using MingW32 compiler v5.1.6 with GDB v7.1 .
When try to "debug" my application, the progress tab shows "Launching: Configuring GDB" at 86% for infinite time. The stop button beside the progress bar does not work where says "Cancel Requested". Your help is appreciated.
Problem fixed. MinGW\bin folder did not have the file libexpat-1.dll for some reason. Downloaded the file from here and extracted to MinGW\bin and everything working smoothly :)