Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Languages / Managed C++ / January 2007

Tip: Looking for answers? Try searching our database.

VS.NET 2005 - always steps into disassembly

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Nathan Mates - 04 Jan 2007 17:36 GMT
I'm using VS.NET 2005SP1 (C++ Express, though I've also seen this on
2005 Standard SP1). One bit of behavior that's been bugging me a lot,
and seems to have gotten worse with SP1, is that if it ever once goes
to disassembly view, it will ALWAYS change to disassembly view when I
step thru code until I quit VS.NET and restart. (2005 original needed
a restart; SP1 sometimes even seems to want to show disassembly while
stepping thru code after the quit & restart).

  Here's some notes on reproducing the problem:

1) Set a data breakpoint on a memory address that'll be allocated.
When it gets tripped, it'll say "No source available. Show
disassembly?  Yes/No, [ ] always show disasssembly." I picked yes.

2) In the callstack window, find one function in your code that has
full source. Jump to that. Note that disassembly is on. Right click
in edit window, pick "Go to source." That works.

3) Now, in the callstack window, find another function that has full
source. Jump to that. Note that disassembly returned.

4) Put a source code breakpoint elsewhere in your code. Run to it.
Disassembly is probably visible-- turn it off. Hit F10 to step over
that line. Note that it WON'T STOP GOING TO THE DISASSEMBLY AND YOU'RE
SINGLE-STEPPING IN THE DISASSEMBLY. (Sorry for the shouting, but it's
pretty annoying to me). VC++ 6, .NET 2002/2003 got this right-- if you
were in source view, then F10 meant step one line, not one
instruction.

  So, is there any magic key combo or preference hidden somewhere
that says "Don't show disassembly unless (1) no source is available,
or (2) I manually turned disassembly view on, during THIS run, and am
currently single-stepping in disassembly.  And never any other time,
dangit." In other words, the classic behavior?

Nathan Mates
--
<*> Nathan Mates - personal webpage http://www.visi.com/~nathan/ 
# Programmer at Pandemic Studios -- http://www.pandemicstudios.com/
# NOT speaking for Pandemic Studios. "Care not what the neighbors
# think. What are the facts, and to how many decimal places?" -R.A. Heinlein
Nathan Mates - 08 Jan 2007 17:44 GMT
Anyone ever seen this? I can't believe I'm the only one who might
ever want to look at a disassembly.

>I'm using VS.NET 2005SP1 (C++ Express, though I've also seen this on
>2005 Standard SP1). One bit of behavior that's been bugging me a lot,
[quoted text clipped - 37 lines]
># NOT speaking for Pandemic Studios. "Care not what the neighbors
># think. What are the facts, and to how many decimal places?" -R.A. Heinlein

--
<*> Nathan Mates - personal webpage http://www.visi.com/~nathan/ 
# Programmer at Pandemic Studios -- http://www.pandemicstudios.com/
# NOT speaking for Pandemic Studios. "Care not what the neighbors
# think. What are the facts, and to how many decimal places?" -R.A. Heinlein

Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.