Win a copy of Learn Spring Security (video course) this week in the Spring forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Unable to catch breakpoint in Eclipse.

 
Ivan Slavka
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
image.png
Tetris situation. The L shape on the left should be unable to rotate.
[Thumbnail for image.png]
image2.png
The L shape get's turned.
[Thumbnail for image2.png]
 
Ivan Slavka
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
OK, guys. My bad. I found a problem. Thanks anyway.
 
Campbell Ritchie
Sheriff
Posts: 48363
56
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
And what was the problem? The answer might be helpful for others, eg searching onGoogle.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic