| Author |
Message |
|
|
Post subject: How to stop "Edit Source Lookup Path ..." re-appea
Posted: Jul 22, 2009 - 03:13 AM
|
|
Registered Member


Joined: Mar 11, 2005
Posts: 10
|
|
I am using MyEclipse 7.5. I have created a simple Maven-based java application, including a class with a main method and about 4 other classes.
I successfully use the Maven exec:java plugin/goal to run the application.
However, when running in debug mode, as soon as I hit a breakpoint in the code, a "Source not found" dialog appears, including an "Edit Source Lookup Path ..." button. I click the button and, in the dialog that is displayed, I "Add" the project of the very code I am debugging, and the relevant code is presented and I can step through it with no problems.
However, the problem I have is that I have to go through this same process (of editing source lookup path, ect.) EVERY time I go into debug mode.
Is there any way of configuring things so that I don't have to keep repeating this?
Thanks,
knarfsnrub |
Last edited by knarfsnrub on Jul 22, 2009 - 03:01 PM; edited 1 time in total
|
| |
|
|
|
 |
|
|
Post subject: RE: How to stop "Edit Source Lookup Path ..." re-a
Posted: Jul 22, 2009 - 07:52 AM
|
|
Registered Member


Joined: Apr 18, 2007
Posts: 8012
|
|
knarfsnrub,
What server are you working with? Are you working with weblogic ? Can you try the following steps:-
1. Create a Launch Configuration for WebLogic by going to Window > Prefs >MyEclipse > App Servers > WebLogic > <Vesion you are using> > Launch, click the button.
2. Hit Apply/OK
3. Go to the Run menu, then Open Run Dialog
4. Find your Run Configuration for WebLogic. Go to the Source tab, click Add, add all your projects to it and hit OK.
5. Now use this run Configuration to start/stop WebLogic.
Does this help? |
_________________ Nipun
MyEclipse Support
|
| |
|
|
|
 |
|
|
Post subject: RE: How to stop "Edit Source Lookup Path ..." re-a
Posted: Jul 22, 2009 - 10:50 AM
|
|
Registered Member

Joined: May 12, 2005
Posts: 472
|
|
Do you have this problem with your class or class from Maven dependency? |
_________________ Eugene
MyEclipse Support
|
| |
|
|
|
 |
|
|
Post subject:
Posted: Jul 22, 2009 - 12:01 PM
|
|
Registered Member


Joined: Mar 11, 2005
Posts: 10
|
|
I'm not using a server. It's a straightforward java application (kicked off from a main() method via a Run Configuration in Eclipse using the Maven exec:java plugin/goal).
The problem is being able to view the code from MY application (not of a Maven dependency).
Thanks,
knarfsnrub |
Last edited by knarfsnrub on Jul 22, 2009 - 03:01 PM; edited 1 time in total
|
| |
|
|
|
 |
|
|
Post subject:
Posted: Jul 22, 2009 - 12:53 PM
|
|
Registered Member

Joined: May 12, 2005
Posts: 472
|
|
Unfortunately, we haven't considered this scenario. Can you run your application as plain Java application? The debugger should work fine then. I will open a problem report on your scenario. |
_________________ Eugene
MyEclipse Support
|
| |
|
|
|
 |
|
|
Post subject:
Posted: Jul 22, 2009 - 02:59 PM
|
|
Registered Member


Joined: Mar 11, 2005
Posts: 10
|
|
Your answer has made me curious.
You say that you haven't considered this scenario. But isn't what I am trying to achieve THE simplest scenario, i.e., run the debugger on a Maven-based java application?
Perhaps my approach is wrong. Should I be using something else (other than the Maven exec:java plugin/goal) to run the app via Maven within Eclipse? Is there another way to run and debug an app, whilst staying within the Maven umbrella within Eclipse?
Thanks,
knarfsnrub |
|
|
| |
|
|
|
 |
|
|
Post subject:
Posted: Jul 22, 2009 - 03:09 PM
|
|
Registered Member

Joined: May 12, 2005
Posts: 472
|
|
MyEclipse support for Maven is designed to allow building MyEclipse projects outside MyEclipse IDE - i.e. on dedicated build machine or other IDE. We plan to broaden this support in the next MyEclipse versions. |
_________________ Eugene
MyEclipse Support
|
| |
|
|
|
 |
|
|
Post subject:
Posted: Jul 22, 2009 - 04:42 PM
|
|
Registered Member


Joined: Mar 11, 2005
Posts: 10
|
|
Understood. Thanks Eugene.
Sincerely,
knarfsrub |
|
|
| |
|
|
|
 |
|
|
Post subject:
Posted: Jul 22, 2009 - 04:47 PM
|
|
Registered Member

Joined: May 12, 2005
Posts: 472
|
|
knarfsrub,
Please note - I added your request and we will look into it once we expand our Maven projects support. |
_________________ Eugene
MyEclipse Support
|
| |
|
|
|
 |
|
|