File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Java in General and the fly likes Debuging problem in eclipse Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "Debuging problem in eclipse " Watch "Debuging problem in eclipse " New topic
Author

Debuging problem in eclipse

Imran Farooqi
Greenhorn

Joined: Sep 23, 2005
Posts: 1
I have two web projects, projA and projB in the workspace of eclipse. Both the projects use different database, and having lot of source file common in both project, also the hierarchy of the most of the package is same in both the projects. The sequence of the projects in the eclipse workspace is projA and then projB.
The problem is that when I put breakpoint in the projB on file named sample.java, the debugging works on projA's sample.java.
Does anybody have any solution?
Keith Pitty
Ranch Hand

Joined: Sep 22, 2005
Posts: 32
I suggest you think about restructuring your code so that common code is in a separate project that both project A and project B refer to.

In other words, if you have a class called com.example.Sample that is required by both projects, put this in project C and update the properties of projects A and B so that their build path includes project C.
David O'Meara
Rancher

Joined: Mar 06, 2001
Posts: 13459

I think what Keith thinks.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Debuging problem in eclipse