Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [jdt-debug-dev] JavaMethodEntryBreakpoints


It looks like you are specifying the wrong name for the method - i.e. "FileReader". If you are referring to a constructor, you should use "<init>".

Darin



Philipp.Bouillon@xxxxxxxxxxx
Sent by: jdt-debug-dev-admin@xxxxxxxxxxx

04/24/2003 09:08 AM
Please respond to jdt-debug-dev

       
        To:        jdt-debug-dev@xxxxxxxxxxx
        cc:        
        Subject:        [jdt-debug-dev] JavaMethodEntryBreakpoints



Hello,

I am trying to programatically set a JavaMethodEntryBreakpoint.
Can this be done _without_ knowing the line number of the method
definition? It does not seem to work for me.
This is, what I do:

I have an IResource object and a name of a method, where I'd like to
set a breakpoint. Say, for example "java.io.FileReader" (and let's
suppose, that I do not have the source code for that class).
Aside: If I do have the source code, it's no problem at all -- I
determine the source range and the line number, and I can set the
breakpoint just perfectly.
So, what can I do now?
I tried a JDIDebugModel.createMethodEntryBreakpoint(resource,
"java.io.FileReader", "FileReader", "(Ljava.lang.String;)V", 0, -1, -1,
0, true, attributes);
But that did not work (I also tried -1 as line number). Is it because
of the signature, or did I miss something else?

Thanks for your help,
Philipp Bouillon
_______________________________________________
jdt-debug-dev mailing list
jdt-debug-dev@xxxxxxxxxxx
http://dev.eclipse.org/mailman/listinfo/jdt-debug-dev



Back to the top