Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Java Build a JavaFX Application Build a Pomodoro App Build the State Change Events

When I debug my Java platform SE binary keeps crashing.

I went through the videos again just to make sure my code is correct, I'm not getting any errors and the debugging button works normally without the break point on it, but, once I place the break point on the println statement and then click on the debugging button my Java platform SE binary will instantly crash. Anyone have any idea why this is happening? Thanks in advance, Derek.

2 Answers

When the debugger has paused the execution of the program, the application will not be responsive. That doesn't necessarily mean it has crashed. Try executing the prepareAttempt(AttemptKind.FOCUS) function using Evaluate Expression as shown in the video, then press "Resume Program" button on the IDE (F9 on windows). The app should reflect change when the program resumes.

kabir k
kabir k
Courses Plus Student 18,036 Points

HI Christopher,

How do you get the Evaluate Expression tool to be re-enabled after doing the FOCUS part of the debugging so that one can continue with the BREAK part of it? Mine was disabled after doing the FOCUS one.

Thanks, worked for me!