473,395 Members | 1,652 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

VS.NET 2005 - always steps into 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
Jan 4 '07 #1
1 4104
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

--
<*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
Jan 8 '07 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: kjon | last post by:
When I try to run any project, sometimes I will encounter this tab window in the IDE which has the following message: "Disassembly cannot be displayed in run mode". I mean it'll show sometimes,...
4
by: Matthew | last post by:
I had an error in a program I was working on. A dialog box came up saying "do you want to view Disassembly?" I clicked OK just for the fun of it, and now every time I run the program it opens a...
2
by: cj | last post by:
Recently for no apparent reason VB 2003 has been opening a Disassembly tab along with Form1.Vb, Start Page, etc. The Disassembly tab has in it Address and a text box followed by (Enter an address...
0
by: Alex Chudnovsky | last post by:
Hi all, I've got a rather weird problem in VS 2005 (and VS 2003 for that matter) when trying to debug a piece of Visual C++ code with asm bits in it. The problem is that I can't step over that...
4
by: tootsuite | last post by:
Help. I have been tasked with upgrading a 2000 instance to 2005. I have actually done this before, but it was a long time ago, and I didn't do it alone. Now, the sitation is little different, and...
1
Digital Don
by: Digital Don | last post by:
Hi, I have been using Visual Studio 2005 for 5 months now and quite a few time I have come across a problem which is, when I write a program and try to debug and trace the error/problem in the...
11
by: Herhor | last post by:
Hello! I have already started C++ programming with VC++ 2005 Express Edition. Unfortunately during debugging one of my first programs I had to unintentionally enable some debugger configuration...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.