Archive for May, 2011

De Bugger Stops Working

Tuesday, May 24th, 2011

Recently I went to debug my current project after a breakpoint was encountered, and I could no longer step into or over subsequent lines of code.  I thought initially it was some sort of conflict with the Tortoise SVN client and the debugger when I had the ‘Debug Spawned Processes’ debugger option enabled.  The EMB newsgroup seemed to indicate there was a known issue, and it did seem to fix the issue when I first encountered it.

About a week later the same thing happened.  I uninstalled Tortoise after seeing if upgrading to the latest version would resolve it.  When even uninstalling didn’t work, I noticed that my Watch window was reporting an access violation.  I removed all watches, and I could step into the code once again.  It appears that under some circumstances it’s possible to create a watch that when evaluated, can effectively disable the debugger.

If I ever reproduce this situation again I will pay more attention to the expression so I can attempt to re-create a test case (even though I am using Delphi 7).