I know I can debug embedded (launched from a Java program) Jython with a remote Pydev debugger. Is there a simpler way to do it?
Not really... whenever you're using java and jython, the primary one should be run as usual (as a simple run or debug) and the other one must be remotely debugged.
Related
I'm using Eclipse CDT on Windows 7, with MinGW as my toolchain and GDB as my debugger. For the most part I have been able to get everything working normally, including the development of Java, C/C++, and JNI applications.
However, I am unable to debug the native side of those JNI applications. The Java debugger works fine for Java code and GDB works fine for purely native code, but I cannot seem to get GDB to operate properly on code within a JNI .DLL.
I have searched the web for quite a while regarding this, and it sounds like the success people have had is by attaching to the running Java process after launching it from Eclipse. Then, setting a breakpoint and letting GDB hit it. Unfortunately, this does NOT seem to work for Windows users.
The only advice that seems to work ( which I can confirm ) is to launch the Java application in Eclipse, then attach to the process from Visual Studio. From there you can set breakpoints in the native code, and they will be hit. This approach is a pain in itself, but what really makes it awful is that you need to have compiled the .DLL from Visual Studio in order to generate the .PDB file for debugging symbols. Making the whole CDT somewhat extraneous at that point.
I'd much prefer to stay within Eclipse, but only if I can actually debug with it. Can anybody out there confirm if it's possible to debug JNI code with Eclipse CDT from Windows?
After a bunch more digging, I have confirmed this is definitely possible with the current ( Kepler ) build of Eclipse and MinGW.
That seemed to be my problem actually; the version of GDB I had wasn't able to attach to any process at all ( which I verified from the command line ). After updating to the current version of MinGW with a new gdb.exe, I could attach properly and view all the threads. Getting breakpoints to hit took a bit more work ( I was missing -g from the gcc compile ), but after that all seems fine.
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
I've installed Scala IDE for Eclipse using the update mechanism, and then I found that there's no command line tools included there. So is it correct that I should download another copy of Scala package for the command line support and maintain both separately?
Or is there an integrated way to get it work in both environments? I just want to write and debug code in Eclipse and occasionally run it on the command line.
First, you can open a Scala command-line within Eclipse. Just go to Window -> Show View -> Scala Interpreter, and it will open an interpreter window that has your project loaded into the classpath.
Second, there's nothing wrong with having a separate Scala installation for command-line use. I do this. It's often convenient to have a few terminal windows where you can run stuff or quickly test bits of code.
You need to install the scala compiler first. Otherwise you can not use the eclipse plugin. If you have installed the scala compiler, you just need to add it to your classpath. Now you can type scala into any terminal you are using and the REPL starts.
My goal is to debug Haxe application in Eclipse (publishing SWF) on Linux. I have manually installed Eclipse Helios, Flash debugger version and Haxe. I have installed Eclihx. Problem is that I'm getting message from Eclipse:
Flash debug runner. This feature isn't ready!
Note: I can run program, so Haxe compiling works. I have also tried adding -D and -debug to hxml. I've been Googling out there, but no success.
And also, I don't know how to setup Eclipse so when I do run that automatically browser pops up with html.
From what I know, it's not currently possible to debug Haxe from Eclipse. However, you could compile a debug Haxe build and and use Adobe's fdb.exe, which is the command line debugger for Flash. With it, you should be able to set breakpoints and do some run-time state inspection. Hope this helps!
I would like to script certain eclipse actions that are too repetitive. An example use case would be: Starting Tomcat, Starting GWT debug, then connecting to GWT debug mode. Best case scenario is if this could be done by shell via an external eclipse interface. But I'd settle for a macro in Eclipse itself as well. Are there any solutions as such?
Thanks!
See my answer at How can I launch more than one debug session in Eclipse from a single click? . The same plugin can work for you as well.
There is a little macro plug-in for Eclipse that seems to work for what you'd want.