Break when a value changes using the Visual Studio debugger

Is there a way to place a watch on variable and only have Visual Studio break when that value changes? It would make it so much easier to find tricky state issues. Can this be done? Breakpoint conditions still need a breakpoint set, and I’d rather set a watch and let Visual Studio set the … Read more

Visual Studio refuses to forget breakpoints?

Visual Studio remembers breakpoints from previous debugging sessions, which is awesome. However, when I’m debugging, and I clear one of these “old” breakpoints by clicking on it, it’s only temporarily deleted. What I mean is the next time I debug, the breakpoint that I thought I removed is back. This is super annoying–is there a … Read more

How to debug a single thread in Visual Studio?

I have a solution with some projects. There are several break-points in different projects. I want to trace the first thread hit one of these break-points and continue tracing that single thread despite of other threads entering the same code-blocks. I know this is possible through defining a condition on the break-point, that is, thread … Read more

Eclipse – Unable to install breakpoint due to missing line number attributes

I am getting this strange error in Eclipse while trying to set a breakpoint. Unable to insert breakpoint Absent Line Number Information I ticked the checkbox from Compiler options but no luck. 41 Answers 41 I had the same error message in Eclipse 3.4.1, SUN JVM1.6.0_07 connected to Tomcat 6.0 (running in debug-mode on a … Read more

How do I remedy “The breakpoint will not currently be hit. No symbols have been loaded for this document.” warning?

A C# desktop application (on the Visual Studio Express/Community edition) worked, but then it didn’t work 5 seconds later. I tried the following: Ensure debug configuration, debug flag, and full debug information are set on all assemblies. Delete all bin and obj folders and all DLL files related to the project from my entire machine. … Read more