Results 1 to 5 of 5
- 08-22-2011, 11:38 PM #1
Member
- Join Date
- Aug 2011
- Location
- Canada
- Posts
- 3
- Rep Power
- 0
- 08-23-2011, 01:10 AM #2
Your question is unclear. You can run your code in debug mode.
- 08-23-2011, 02:23 AM #3
I've also wondered about this style of debugging. Can you have the debugger stop when the value of a variable is set to a given value?
The work around is to add lines of code at each point the variable is changed to fall into a if statement to a place where you can set a break:
I had a debugger on a system I worked on in the early 80s that had that feature.Java Code:if(variable has desired value) { int x = 213; // Some dummy code that you can add a break point to }
- 08-23-2011, 02:36 AM #4
I'm not that familiar with debuggers.
You generally place a break point on a certain line of code. The program pauses when it gets to that break point and you can then find out what values variables hold at that point in time. I think it may be possible to add some logic as per your example
- 08-24-2011, 12:05 AM #5
Member
- Join Date
- Aug 2011
- Location
- Canada
- Posts
- 3
- Rep Power
- 0
I think using conditional breakpoint trigger will do that. Just right-click on the breakpoint and select breakpoint properties and you'll see.
Check the details in: Debugging with the Eclipse Platform
Similar Threads
-
How do stop Eclipse from suggesting variable names?
By Neil_ in forum EclipseReplies: 0Last Post: 04-12-2009, 03:06 AM -
Passing Environment Variable in Eclipse Europa
By ajaymenon.k in forum EclipseReplies: 0Last Post: 11-19-2007, 10:08 AM -
File Monitor
By ranak81 in forum Advanced JavaReplies: 1Last Post: 08-13-2007, 09:45 PM -
Function Monitor!
By snooze-g in forum Advanced JavaReplies: 1Last Post: 07-20-2007, 09:05 AM -
Caché Monitor 0.35
By levent in forum Java SoftwareReplies: 0Last Post: 06-10-2007, 01:40 PM


1Likes
LinkBack URL
About LinkBacks
Reply With Quote

Bookmarks