9 Replies Last post: Feb 5, 2013 3:35 PM by wallaby.pouch  
Yevgen Bushuyev Newbie 29 posts since
Jul 11, 2012
Currently Being Moderated

Feb 4, 2013 4:58 PM

Idea loads wrong source for dubgging

Hi,

 

I have two wars in my project each using same dependency but with differenet versions. When debugging with run:jetty source is being loaded from wrong dependency, i.e. one from other war. Is there any way to tell debugger to take sources from correct location?

 

Best regards, Eugene.

Denis Zhdanov JetBrains 1,423 posts since
Oct 20, 2007
Currently Being Moderated
Feb 4, 2013 5:55 PM in response to: Yevgen Bushuyev
Re: Idea loads wrong source for dubgging

Hello,

 

Can you provide a sample project which illustrates the problem?

 

Denis

Guest
Currently Being Moderated
Feb 4, 2013 6:38 PM in response to: Yevgen Bushuyev
Re: Idea loads wrong source for dubgging

What do you mean by "debugging with run:jetty"? Which kind of a run configuration do you use to start Jetty?

 

--

Nikolay Chashnikov

Software Developer

JetBrains, Inc

http://www.jetbrains.com

"Develop with pleasure!"

 

Guest
Currently Being Moderated
Feb 5, 2013 2:57 PM in response to: Yevgen Bushuyev
Re: Idea loads wrong source for dubgging

IDEA indeed isn't smart enough to determine which war is deployed when you start Jetty via Maven. However if you start Jetty using a Jetty run

configuration IDEA will know which war artifact is deployed so the problem should go away.

 

--

Nikolay Chashnikov

Software Developer

JetBrains, Inc

http://www.jetbrains.com

"Develop with pleasure!"

 

wallaby.pouch Novice 251 posts since
May 15, 2008
Currently Being Moderated
Feb 5, 2013 3:35 PM in response to: Nikolay Chashnikov (JetBrains)
Re: Idea loads wrong source for dubgging

It doesn't work for a Tomcat run configuration ... (see issues in the other post below)

 

Regards,

Wallaby

wallaby.pouch Novice 251 posts since
May 15, 2008
Currently Being Moderated
Feb 4, 2013 6:30 PM in response to: Denis Zhdanov
Re: Idea loads wrong source for dubgging

I think it's this issue:

 

http://youtrack.jetbrains.com/issue/IDEA-54805

 

Also related:

http://devnet.jetbrains.com/thread/312090

 

Regards,

Wallaby

More Like This

  • Retrieving data ...