Re: I am still having problems setting breakpoints in a Java project
Re: I am still having problems setting breakpoints in a Java project
- Subject: Re: I am still having problems setting breakpoints in a Java project
- From: Greg Guerin <email@hidden>
- Date: Mon, 30 Apr 2007 11:29:34 -0700
Paul Archibald wrote:
>Aside from throwing away project preferences, deleting all breakpoints in
>a project, quitting and restarting Xcode and my Mac, are there any other
>suggestions as to how I might get the debugger to honor the breakpoints I
>put in?
First, figure out if it's a project problem or a systemic problem.
Create a new project, add a couple of new classes with the same
relationship as the problematic ones, and set breakpoints. If the
breakpoints work, then it's a project problem with your original project.
If the breakpoints don't trigger on the new code, it's a systemic problem.
"New classes with the same relationship" means writing a couple of
placeholders, e.g. Foo and Bar, that do the same things as your original:
instantiate the same way (static ref vs. Class.newInstance() vs.
Constructor), invoke the same kinds of methods (static vs. instance, final
vs. non), etc. For example, your originals have a breakpoint set inside a
constructor, so make sure there's enough lines of code in the test-case's
constructor that you can set a breakpoint or two there.
I'm assuming that "inside a constructor" is inside the constructor of a
class you wrote. If it's inside the constructor of a library class, the
problem might be that the source you're setting breakpoints from doesn't
match the classes that are loaded at runtime. For example, if the source
is for 1.4 but you're running 1.5, then the breakpoint can't ever happen,
because it's in the wrong set of inter-related source/class/JVM files.
It may help if you gave the version of Java you're using, where it's set,
what's in your project's Executable, and so on.
It would also help if you post the source from the simple test-case,
especially if it doesn't work. As it stands, your description is too vague
to accurately replicate.
-- GG
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden