|
View:
New views
5 Messages
—
Rating Filter:
Alert me
|
|
|
debugging SWTI am working on debugging some code I added to the SWT library on the
C side. Are there instructions anywhere that would show my how to step through my code from the Java side to the C side in Eclipse using Fedora? Thanks _______________________________________________ platform-swt-dev mailing list platform-swt-dev@... https://dev.eclipse.org/mailman/listinfo/platform-swt-dev |
|||||||||||
|
|
Re: debugging SWTHi, This is not something that's done here during swt development, so we don't have any instructions or experience to pass along. It's rare that swt's C/C++ code needs to be debugged because most of it is generated, and is responsible for just making an OS call (fprintf has proven to be adequate here). Googling came across: - http://www.jboss.org/community/wiki/DebuggingJNICandJavacodeinEclipse looks promising - http://forums.sun.com/thread.jspa?threadID=670308 suggests a Visual Studio approach, which may have a corresponding approach in the linux world HTH, Grant
I am working on debugging some code I added to the SWT library on the C side. Are there instructions anywhere that would show my how to step through my code from the Java side to the C side in Eclipse using Fedora? Thanks _______________________________________________ platform-swt-dev mailing list platform-swt-dev@... https://dev.eclipse.org/mailman/listinfo/platform-swt-dev _______________________________________________ platform-swt-dev mailing list platform-swt-dev@... https://dev.eclipse.org/mailman/listinfo/platform-swt-dev |
|||||||||||
|
|
Re: debugging SWTThanks for the information. If I were extending the functionality of SWT and you say that most of the SWT code is autogenerated, where would I go to change either how the code is generated or what the code is generated from?
Thanks.. On Tue, Nov 10, 2009 at 11:00 AM, Grant Gayed <Grant_Gayed@...> wrote:
_______________________________________________ platform-swt-dev mailing list platform-swt-dev@... https://dev.eclipse.org/mailman/listinfo/platform-swt-dev |
|||||||||||
|
|
Re: debugging SWTTo change SWT's C/C++ generator, start by retrieving the org.eclipse.swt.tools project from dev.eclipse.org (see http://www.eclipse.org/swt/cvs.php ). The generator lives in its "JNI Generation" unit. To run the generator, run the JNIGeneratorApp class with argument "all" (no quotes). You can then make changes to what gets generated in the other classes in the package. To change the set of java classes that have their natives generated, modify the org.eclipse.swt.internal.properties file in this package. Grant _______________________________________________ platform-swt-dev mailing list platform-swt-dev@... https://dev.eclipse.org/mailman/listinfo/platform-swt-dev |
|||||||||||
|
|
Re: debugging SWTNot sure if it will help in this case, but here's a little overview of the "typical" use of the JNI generator (which is just to add a java method or class that corresponds to a native method or struct): http://www.eclipse.org/swt/jnigen.php Carolyn
To change SWT's C/C++ generator, start by retrieving the org.eclipse.swt.tools project from dev.eclipse.org (see http://www.eclipse.org/swt/cvs.php ). The generator lives in its "JNI Generation" unit. To run the generator, run the JNIGeneratorApp class with argument "all" (no quotes). You can then make changes to what gets generated in the other classes in the package. To change the set of java classes that have their natives generated, modify the org.eclipse.swt.internal.properties file in this package. Grant _______________________________________________ platform-swt-dev mailing list platform-swt-dev@... https://dev.eclipse.org/mailman/listinfo/platform-swt-dev _______________________________________________ platform-swt-dev mailing list platform-swt-dev@... https://dev.eclipse.org/mailman/listinfo/platform-swt-dev |
| Free embeddable forum powered by Nabble | Forum Help |