Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Debuging problem in eclipse

 
Imran Farooqi
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 32
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 13459
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think what Keith thinks.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic