Skip to main content



      Home
Home » Language IDEs » Java Development Tools (JDT) » Breakpoint for a specific instance?
Breakpoint for a specific instance? [message #154833] Sat, 17 April 2004 11:24 Go to next message
Eclipse UserFriend
How can I set a breakpoint that suspends the VM only when the object is
a specific instance?
I know I can specify conditions in the breakpoint properties, but that
doesn't let me specify easily an instance. For example, I am stepping
through my program and find a line where I would like to put a
breakpoint for the current instance.
Shall I file a RFE?
Re: Breakpoint for a specific instance? [message #154861 is a reply to message #154833] Sat, 17 April 2004 21:19 Go to previous message
Eclipse UserFriend
> Shall I file a RFE?

No. You can specify breakpoint conditions that effectively does what you
want. For example, if you have:

public void foo()
{
this.foo = 1;//<-- set breakpoint with _any_ scope valid boolean
expression
}

then thread/VM will be suspended there only if condition is true. You can
also filter threads. There is tons of options. Just right-click on
breakpoint in your code and select "Breakpoint properties".

All the best,
Vladimir
Previous Topic:simple or simpleton
Next Topic:What happen to Synchronize's flat layout?
Goto Forum:
  


Current Time: Wed Jul 16 11:48:38 EDT 2025

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

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

Back to the top