Skip to main content



      Home
Home » Language IDEs » Java Development Tools (JDT) » Source File Path
Source File Path [message #261352] Wed, 22 July 2009 16:03 Go to next message
Eclipse UserFriend
I've been researching a solution to my problem for days now. Through
reflection I've created and loaded a class in my application. I would now
like the debugger to recognize the source file. Unfortunately I am not
familiar enough with eclipse to add the file through the api. My research
is telling me that I need to create a plugin and use the org.eclipse.debug
apis. Is this correct or is there a more straight forward way to add the
Source file path? Any help would be appreciated.

Thank you
Re: Source File Path [message #261356 is a reply to message #261352] Wed, 22 July 2009 17:50 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: wegener.cboenospam.com

You don't specify whether your application is a plain Java app or an RCP
application. If it is a Java application, you can use the Source tab of the
launch config to specify source lookup locations.

"Larry" <prlarry@hotmail.com> wrote in message
news:615c07c6cdfc00907c2b6813fa384820$1@www.eclipse.org...
> I've been researching a solution to my problem for days now. Through
> reflection I've created and loaded a class in my application. I would now
> like the debugger to recognize the source file. Unfortunately I am not
> familiar enough with eclipse to add the file through the api. My research
> is telling me that I need to create a plugin and use the org.eclipse.debug
> apis. Is this correct or is there a more straight forward way to add the
> Source file path? Any help would be appreciated.
>
> Thank you
>
Re: Source File Path [message #442830 is a reply to message #261356] Fri, 31 July 2009 09:44 Go to previous message
Eclipse UserFriend
I think you've set me in the right direction. What I've done is to create
a simple plugin with a LaunchDelegate extension. In the launch function
I've created a reference to the launch configuration and put that
reference in a separate Data Object. What I'm having trouble with now is
accessing that Data Object from my Java App. What I hope to do is have my
Java app pass the source path of the java file into this data object which
will then add the source path to the launch configuration. I'm hoping
that when the debugger will then be able to recognize the source code when
hitting a break point.
Previous Topic:Strange message hover Enums
Next Topic:ICompilationUnit & CompilationUnit
Goto Forum:
  


Current Time: Sun May 11 07:37:23 EDT 2025

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

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

Back to the top