File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes IDEs, Version Control and other tools and the fly likes Unable to catch breakpoint in Eclipse. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Bookmark "Unable to catch breakpoint in Eclipse." Watch "Unable to catch breakpoint in Eclipse." New topic
Author

Unable to catch breakpoint in Eclipse.

Ivan Slavka
Greenhorn

Joined: Feb 06, 2012
Posts: 11
Hi guys,

I'm having a very weird problem in Eclipse during debugging. I know that it is probably my error, but I can't figure out where, so I decided to ask for your help.
To explain the problem that I'm facing is a little but hard, but I'll try my best so bare with me on this one.

First of all, I have uploaded my project source files, so that anybody willing to help, is able to.
Source

I'm creating a tetris like game, and I'm a beginner so, if anybody has some advice about my code writing feel free to tell me, however my problem is priority.

Problem:
I put the breakpoint on line 251 in file ShapeCoordinator.java. The problem is, if my shape is able to rotate(there are no blocks in vicinity),
it successfully goes to this line, however if for example we have following situation (check attached image), the L shape on the left side shouldn't be able to rotate,
debug doesn't go to the above mentioned line because it's inside the condition which returns false (this behavior is correct), problem is that my shape gets turned anyway.

I can't figure out why my shape get's turned (second attached image). I tried to put breakpoints on other lines as well, however I'm unable to catch the breakpoint.

Probably it's my fault somewhere, however I'm unable to figure it out.
Thanks in advance for your help, and if you need some other info please feel free to ask.



[Thumbnail for image.png]


[Thumbnail for image2.png]

Ivan Slavka
Greenhorn

Joined: Feb 06, 2012
Posts: 11
OK, guys. My bad. I found a problem. Thanks anyway.
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 40052
    
  28
And what was the problem? The answer might be helpful for others, eg searching onGoogle.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Unable to catch breakpoint in Eclipse.