running eclipse debugger with program launched by script - eclipse

How do you run the debugger in Eclipse on a program launched with a Python script?
I have a executable (written in Fortran) that is launched using Python and I would like to use gdb integrated in Eclipse, but I don't know how to tell Eclipse or GDB what executable I am trying to debug.
I am using Eclipse IDE for C/C++ Developers Indigo Service Release 2 on Mac OSX Lion.

Related

remote debugging jython script runned by java program with eclipse and Pydev

I am trying to debug a jython script which runs via a java project. I have installed pydev in my eclipse IDE and I followed these instructions(http://www.pydev.org/manual_adv_remote_debugger.html). when I am running the java app while python debug server is running debugger recognizes normally that the jython script is going to be executed halt the excecution and wait for step over or resume commands.
The problem is that PyEdit(editor window) does not highlight the lines which are executed. Also debugger does not know the breakpoints of the scripts. It seems like debugger can not correlate the running thread with the script file.
Is there any way to configure pydev server to correlate debugging with a specific file?

How to run eclipse luna mac os with java 7

i need to execute a ant script inside eclipse luna using java 7.
The problem is that if i try to change the path with jenv or try to set JAVA_HOME inside eclipse the ant script inside eclipse is always executed with java 6.
The OS is macOS Sierra.
I have to use eclipse.ini ?
Thanks
Assuming you are running the Ant script the normal way you can configure this in the configuration for the script.
Open the External Tools Configuration dialog using 'Run > External Tools > External Tools Configuration...'.
Find your script in the 'Ant Build' section and then look at the 'JRE' tab where you can set the JRE/JDK to anything you have told Eclipse about.

Can I run C written in NetBeans on Ubuntu in the Windows NetBeans IDE?

I have some C code written using the NetBeans editor in Ubuntu 10.04 LTS.
Would I be able to run this on a Windows 7 system without any problems, using the same Windows NetBeans IDE?
In short no. (... there are some work arounds)
On the Linux Side
Netbeans installed on Ubuntu, by default, will compile this using GCC, and compile it to run on Linux.
On the Windows Side
If you basically copied your Ubuntu-Netbeans project in Netbeans for Windows, Netbeans on windows will need to be pointed towards a tool chain. By default, Netbeans looks for the GNU tool chain.
I personally have not been able to get Netbeans to play with the latest Windows SDK packages, so the simple act compiling the same C code on two different platforms with the same IDE is a little tricky. You will see alot of people say to Install GCC on windows, use Cygwin, MinGW, ect.
Keep in mind, Netbeans has no affect on the final compiled product of your code, that is up to the compiler being used in the background.

Debug in Eclipse while running from command line ubuntu

Is there a way I can debug my application (using breakpoints in eclipse) while running it from command line (ubuntu)? I'm using Eclipse Kepler version on Ubuntu 12.04LTS.
I know there's something like attach to process in .net, was wondering if eclipse has some such setup.
Thanks,
Is your application written in C or in Java?
If your application is in C and you are using CDT, you can attach to existing project by:
Run your application from terminal.
In Eclipse CDT, go to main menu "Run"->"Debug Configurations...", double-click "C/C++ Attach to Application" and press "Debug" (you should not need to specify executable and/or project).
For Java applications, see this

can compile c++ in eclipse - Cannot run program "autoreconf": Launching failed

I installed eclipse Helios a week ago. First I installed it without the CDT.
Today I installed the CDT along with the autotool (this it what can be seen in the list of possible updates). Afterwards, I installed also the minGW (Wascana) as written in the manual of CDT.
but after I create an Hello World project in eclipse I get this error (blinking non stopable) in the console tab:
Invoking autoreconf in build directory: D:/eclipse/proj/workspace/testcpp
Configuration failed with error
(Cannot run program "autoreconf": Launching failed)
Can anyone help me with this? What else do I need to install or config so my CDT will work?
thanks,
Eli
The autotools plug-in doesn't work on Windows yet. There is a fix in place for the upcoming Indigo Eclipse release.
The main problem is that Windows doesn't know how to run shell scripts (which is what autoreconf is). You have to launch the shell manually and ask it to run it. And that's what the fix is.