Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » Debug mode not working properly
Debug mode not working properly [message #1252662] Fri, 21 February 2014 13:07 Go to next message
Raymond Rainskis is currently offline Raymond RainskisFriend
Messages: 3
Registered: February 2014
Junior Member
Hi, I'm new to java programming and Eclipse, and I've run into an odd problem. After a quick google search I didn't find anything that would solve my problem, so here I am. I've started making a simple 2D game, and the problem I'm having at the moment is that I can only run the project properly in the regular 'run' mode, but not in Debug mode. The program ends up suspending a thread responsible for rendering the screen at the point where it has to clear the screen, using a for loop

public void clear() {
for (int i = 0; i < pixels.length; i++) {
pixels[i] = 0;
}
}

It suspends the thread at entry into the method clear(). I can provide additional information, but, being the newb I am, I don't know what's needed or not. Help would be greatly appreciated.
Re: Debug mode not working properly [message #1252783 is a reply to message #1252662] Fri, 21 February 2014 15:51 Go to previous messageGo to next message
Nitin Dahyabhai is currently online Nitin DahyabhaiFriend
Messages: 4435
Registered: July 2009
Senior Member

What should it being doing instead? If you look in the Breakpoints View, are there unwanted breakpoints defined?

_
Nitin Dahyabhai
Eclipse Web Tools Platform
Re: Debug mode not working properly [message #1252880 is a reply to message #1252783] Fri, 21 February 2014 17:59 Go to previous message
Raymond Rainskis is currently offline Raymond RainskisFriend
Messages: 3
Registered: February 2014
Junior Member
It should clear the array pixels[] which contains all the pixels of a rendered frame and continue to do whatever comes after, that usually being rendering a new frame, clearing it again and so on. There are no other breakpoints in the Breakpoints View, and the odd thing is, after I copied the project into my other Eclipse installation with a separate workspace, which is the Android Developer Toolkit, it runs in Debug mode absolutely fine.
Previous Topic:RCP generation compiler issue
Next Topic:Convert Java Applet on Web Page
Goto Forum:
  


Current Time: Tue Apr 23 12:50:56 GMT 2024

Powered by FUDForum. Page generated in 0.08905 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top