VS.NET 2005 - always steps into disassembly

N

Nathan Mates

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
 
N

Nathan Mates

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,
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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top