Skip to main content



      Home
Home » Language IDEs » Java Development Tools (JDT) » Basic questions about creating a debug view
Basic questions about creating a debug view [message #202710] Thu, 05 May 2005 22:30 Go to next message
Eclipse UserFriend
I'm attempting to create a debug view and I'm hoping I can get a little
guidance. What I'm looking to do is when a breakpoint is hit to execute
code in the JVM being debugged. So for simplicity let's say that I want
to call "System.getProperty()" from my view. From the little digging
I've done it seems like I can use an ASTEvaluation to do this. Is this
correct? If so is there existing code that someone can point me to to
see how this is done? I'm just looking for a place to start here.

Thanks,
brad
Re: Basic questions about creating a debug view [message #202774 is a reply to message #202710] Fri, 06 May 2005 06:30 Go to previous messageGo to next message
Eclipse UserFriend
I found where evaluations were occuring in the some of the eclipse code
but now I'm having trouble retrieving the IJavaProject for the project
being debugged. Can anyone provide any insight into thow this is retrieved?

Brad Reynolds wrote:
> I'm attempting to create a debug view and I'm hoping I can get a little
> guidance. What I'm looking to do is when a breakpoint is hit to execute
> code in the JVM being debugged. So for simplicity let's say that I want
> to call "System.getProperty()" from my view. From the little digging
> I've done it seems like I can use an ASTEvaluation to do this. Is this
> correct? If so is there existing code that someone can point me to to
> see how this is done? I'm just looking for a place to start here.
>
> Thanks,
> brad
Re: Basic questions about creating a debug view [message #203024 is a reply to message #202774] Tue, 10 May 2005 14:45 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: jaredburns.no.spam.acm.org

A couple places to get started:
EvaluateAction#getJavaElement(...)
JavaLineBreakpoint#handleConditionalBreakpointEvent(...)

Brad Reynolds wrote:
> I found where evaluations were occuring in the some of the eclipse code
> but now I'm having trouble retrieving the IJavaProject for the project
> being debugged. Can anyone provide any insight into thow this is
> retrieved?
>
> Brad Reynolds wrote:
>
>> I'm attempting to create a debug view and I'm hoping I can get a
>> little guidance. What I'm looking to do is when a breakpoint is hit
>> to execute code in the JVM being debugged. So for simplicity let's
>> say that I want to call "System.getProperty()" from my view. From the
>> little digging I've done it seems like I can use an ASTEvaluation to
>> do this. Is this correct? If so is there existing code that someone
>> can point me to to see how this is done? I'm just looking for a place
>> to start here.
>>
>> Thanks,
>> brad
Re: Basic questions about creating a debug view [message #203690 is a reply to message #203024] Mon, 16 May 2005 22:12 Go to previous message
Eclipse UserFriend
Jared Burns wrote:
> A couple places to get started:
> EvaluateAction#getJavaElement(...)
> JavaLineBreakpoint#handleConditionalBreakpointEvent(...)
>
> Brad Reynolds wrote:
>
>> I found where evaluations were occuring in the some of the eclipse
>> code but now I'm having trouble retrieving the IJavaProject for the
>> project being debugged. Can anyone provide any insight into thow this
>> is retrieved?
>>
>> Brad Reynolds wrote:
>>
>>> I'm attempting to create a debug view and I'm hoping I can get a
>>> little guidance. What I'm looking to do is when a breakpoint is hit
>>> to execute code in the JVM being debugged. So for simplicity let's
>>> say that I want to call "System.getProperty()" from my view. From
>>> the little digging I've done it seems like I can use an ASTEvaluation
>>> to do this. Is this correct? If so is there existing code that
>>> someone can point me to to see how this is done? I'm just looking
>>> for a place to start here.
>>>
>>> Thanks,
>>> brad

Thanks a lot. I had tried EvaluateAction and for some reason still had
difficulties but the code in JavaLineBreapoint did the trick.

Thanks,
Brad
Previous Topic:M7 JDT Open Type Dialog with multiple projects
Next Topic:how do I?
Goto Forum:
  


Current Time: Thu May 01 11:50:31 EDT 2025

Powered by FUDForum. Page generated in 0.07471 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top