I have a SL2RC0 application that I am debugging in VSTS 2008 and it is getting a Sys.InvalidOperationException "value does not fall within expected range" error and triggering the Microsoft Script Debugger to come up. The MS Script Debugger does not show me much of a stack trace, but the message property in the exception shows quite a stack trace.
Apparently the error is coming from a ListBox.OnSelectionChanged that was triggered by a ListBoxItem.OnMouseLeftButtonDown. But without an active stacktrace in the MS Script Debuuger I can not look at any of the details of the calls to try an determine which list box in my application might be causing the exception.
How do I find out what is causing this exception?
How do I find out which ListBox is creating this exception?
How do I get this exception to trigger the debugger in VSTS 2008 instead of a runtime debugger?
THANKS for your help.