File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
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

Unable to catch breakpoint in Eclipse.

Ivan Slavka

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.

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.

I put the breakpoint on line 251 in file 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

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

Joined: Oct 13, 2005
Posts: 38057
And what was the problem? The answer might be helpful for others, eg searching onGoogle.
jQuery in Action, 2nd edition
subject: Unable to catch breakpoint in Eclipse.
Similar Threads
debugging java hashmap source code using eclipse
Debugging GEF Editors
help implementing a simple Line class
Eclipse 3.2 (WTP) : Error occuring while trying to debug
a real noob