When writing and debugging X10 programs in Eclipse, please try to use X10DT.
If X10DT does not yet have a feature which you need, there is a cheap way of tricking Eclipse to help you. Remember that the X10 compiler generates Java code. You can create a Java project in Eclipse (I call mine "x10.java.gen") and instruct x10c to deposit the generated code in x10.java.gen/src. Now if you add the x10 jar files to the classpath of this project, you have yourself a Java project which contains source code that you can execute as a normal Java program. For instance, if you compiled Foo.x10, you will find a Foo.java in the src directory. Doing an Alt-Shift-X J on Foo.java will cause this program to execute -- essentially executing your X10 computation. Sometimes the generated Java has compilation problems. Should not happen -- but it does. The Problems view in Eclipse is useful to see what these problems are, and to jump to the line in the source code where this problem exists. There you will find a #Line <num> comment which will tell you the source line number in the X10 file that generated this line. (This is particularly useful if the window in which you ran your x10 compiler is such that you have a hard time seeing the error messages generated. This happens e.g when running under emacs in cygwin. In such a case you should run directly in a top-level bash shell.) You can use the Java debugger to debug this program (placing breakpoints, stepping, jumping etc). The big drawback is that you are debugging at the level of the generated code rather than at the level of X10 source. (This is why we are working on an X10 source-level debugger as well.) ------------------------------------------------------------------------------ This SF.Net email is sponsored by the Verizon Developer Community Take advantage of Verizon's best-in-class app development support A streamlined, 14 day to market process makes app distribution fast and easy Join now and get one step closer to millions of Verizon customers http://p.sf.net/sfu/verizon-dev2dev _______________________________________________ X10-users mailing list X10-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/x10-users