473,569 Members | 2,701 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 4116
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
11778
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, and sometimes don't. Just wonder what is the meaning of this? Do I need to concern of any wrong doing in my program or codes? Thanks in advance.
4
13415
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 new tab in VB.NET titled Disassembly. My guess is I checked an option to view the disassembly every time. However, I really don't want this to...
2
1676
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 to view disassembly.) Where is this coming from? What is making it appear? I'm working on just a standard windows application. No web stuff.
0
1016
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 code and breakpoints will fail, however as soon as I remove "asm" keyword (and assembly instructions) from that function (its mixed asm and C++), it...
4
2940
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 I need to know the EXACT steps to take. Does anyone have a FAQ or link that outlines migration steps? I found one on sql server central, but it...
1
2600
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 program. using step by step procedure i.e "F10" after pressing F5 (Debug Mode) from Break Point I get disassembly code instead of showing the steps in...
11
4397
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 feature which turns on Disassembly Window at the end of every my program (basic example below). int main() { //some instructions;
0
7697
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
1
7672
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
7968
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
6283
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5512
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
5219
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3640
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2113
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
0
937
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.