Re: Problem with Debug.Assert

Brady Kelly <[email protected]> Thu, 29 May 2008 11:26:02 +0200
Newsgroups gmane.comp.windows.devel.dotnet.clr
Message-ID <[email protected]>
> > When I run the following code in the IDE, under the Debug
> configuration,
> > when I choose Retry on the dialogue presented by the assert, I get a
> message
> > that no source code is available for the current location.  Can
> anyone
> > enlighten me as to why VS2008 cannot see the obviously available code
> at
> > that location?
>
> Have you enabled address-level debugging but not "Show disassembly if
> source not available"?   That's in Tools/Options/Debugging/General in
> VS2005
>
> I've also seen this when the available source doesn't match the
> executable, and I've just plain had the IDE throw a strop and fail to
> load the symbols at all. A reboot or rebuild has always fixed that for
> me in the past.
>
> John

John, in VS 2008, with address level debugging disabled, I get a no source
code available, period, error message.  With 'Show disassembly.." enabled, I
go straight to the disassembly, without it, I get the same source code
message, but with an option to view disassembly.

I find that enabling "Just my code (Managed only)" suppresses the warning
about source code availability.

Interesting, in all cases, one 'single-step' enters a break-point on the
assert line, regardless of what is enabled and what not.

===================================
This list is hosted by DevelopMentorĀ®  http://www.develop.com

View archives and manage your subscription(s) at http://discuss.develop.com