Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » Write Watch Variable(How do you break when a variable changes value?)
Write Watch Variable [message #916239] Tue, 18 September 2012 19:41 Go to next message
Kurt von Laven is currently offline Kurt von LavenFriend
Messages: 2
Registered: September 2012
Junior Member
Does Eclipse have a way to break when a variable changes values? If not, is there some crafty workaround that provides similar functionality. This would be helpful in general, but my specific short-term goal is to track down the point at which a variable becomes null since my program is crashing with a NullPointerException.
Re: Write Watch Variable [message #916257 is a reply to message #916239] Tue, 18 September 2012 20:18 Go to previous message
Kurt von Laven is currently offline Kurt von LavenFriend
Messages: 2
Registered: September 2012
Junior Member
Nevermind, I finally found the answer in the Eclipse help menu. It turns out that in the "Variables" view, you can right click on a variable and select "Toggle Watchpoint." This will create a breakpoint that breaks when variable is accessed and/or modified. You can modify your newly created watchpoint in the "Breakpoints" view.
Previous Topic:Glob patterns usable in "Open Element" dialog?
Next Topic:Having some troubles installing c# plugin emonic
Goto Forum:
  


Current Time: Fri Apr 19 10:30:47 GMT 2024

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

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

Back to the top