Re: javabug
Re: javabug
- Subject: Re: javabug
- From: David Ewing <email@hidden>
- Date: Thu, 4 Dec 2003 14:36:14 -0700
On Dec 4, 2003, at 6:03 AM, Gerard Iglesias wrote:
Hi,
I am beginning to learn Java, and put our big Java project under
Xcode, not so good as IDEA for that matter but a lot easier when you
have to put together ObjC and Java code, and very good to maintain a
unified graphical build process :)
My question is about javabug, how to use it, breakpoints in the
command line?
Our main Java app is loading dynamically some classes put in a jar
file, is it possible to break in the sources of the 'plugin' ?
If the jar file is built by another Xcode project, then just have that
project open too when you're debugging. You can then set breakpoints by
clicking in the gutter at the left of a source file.
If the file isn't built by an Xcode project, then you can add source
code root directory to your executable. (All works best if the Java
sources are organized hierarchically on disk according to their
packages.) Double-click the executable, click the plus sign under the
"Source Directories" item and add in the directory. Breakpoints that
you add to your source file by clicking in the gutter should then but
found by the debugger.
(Hint for you folks who like to wander through the JDK sources while
debugging: Unjar the file /Library/Java/Home/src.jar, and add the path
/Libary/Java/Home/src to your executable's directories too.)
Dave
_______________________________________________
xcode-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/xcode-users
Do not post admin requests to the list. They will be ignored.
References: | |
| >javabug (From: Gerard Iglesias <email@hidden>) |