473,503 Members | 1,136 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How to disable disassembly window in VC++ 2005?

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;
// ................
> return 0; // debug caret placement -Disassembly Window emerges
here when F10 pressed
}
Could you tell me how to disable this feature because low-level
debugging isn't necessary yet in my situation at all.
Jun 21 '07 #1
11 4386
In article <f5**********@news.onet.pl>,
Herhor <he**************@onet.euwrote:
return 0; // debug caret placement -Disassembly Window emerges
here when F10 pressed
I have exactly the same problem, and it drives me nuts that a bug
like this could ship. *EVERY* *BLOODY* *TIME* I hit F10, it goes into
the disassembly, if I've ever once looked at the disassembly. Doesn't
matter if I've gone back to the source; it says "here's more
disassembly." Do you have focus-follows-mouse turned on via the MS
Powertoys? I have that on, and although DevStudio (except for VC++ 6,
the only version to get it right) is stupid about autoraise (I usually
mutter "down, boy" -- DevStudio's autoraise is like a dog trying to
hump your leg).

The only way I've found around the "F10 means step in disassembly"
bug is Tools -Options... -Debugging -General, and uncheck [x]
Enable address-level debugging. That'll prevent the disassembly view
from appearing. And, any memory windows too, unfortunately. What I
usually have to do is turn off address-level debugging. If I re-enable
it later, F10 doesn't go back to the assembly single-stepping. Until I
need to look at the disassembly.

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
Jun 21 '07 #2
Nathan Mates pisze:
In article <f5**********@news.onet.pl>,
Herhor <he**************@onet.euwrote:
>>> return 0; // debug caret placement -Disassembly Window emerges
here when F10 pressed

I have exactly the same problem, and it drives me nuts that a bug
like this could ship. *EVERY* *BLOODY* *TIME* I hit F10, it goes into
the disassembly, if I've ever once looked at the disassembly. Doesn't
matter if I've gone back to the source; it says "here's more
disassembly."
Shit! I don't know what is going on because VC++ is a decade long MS
product line, so it should be such silly bug free...
Do you have focus-follows-mouse turned on via the MS
Powertoys? I have that on, and although DevStudio (except for VC++ 6,
the only version to get it right) is stupid about autoraise (I usually
mutter "down, boy" -- DevStudio's autoraise is like a dog trying to
hump your leg).
No, I probably don't. But what do you mean "MS Powertoys" ?
The only way I've found around the "F10 means step in disassembly"
bug is Tools -Options... -Debugging -General, and uncheck [x]
Enable address-level debugging. That'll prevent the disassembly view
from appearing. And, any memory windows too, unfortunately. What I
usually have to do is turn off address-level debugging. If I re-enable
it later, F10 doesn't go back to the assembly single-stepping. Until I
need to look at the disassembly.
I also discovered and unchecked this option but instead of Disassembly
Window some stupid VC++ warning "There is no source code available for
the current location" emerges when F10 pressed. So there is no better
anymore.
Besides I think this behavior must be connected "Debug Information
Format" settings because if I change it, Disassembly Window appears more
or less often. You could examine this yourself if you wish...
Jun 21 '07 #3
I also received interesting answer from one guy at MSDN forum:

You are then stepping out into the CRT calls and the VC++ 2005 _Express
Edition_ doesn't have the CRT source code. What you should do is just
press F5 there to finish it off there.
Jun 21 '07 #4
I also received interesting answer from one guy at MSDN forum:

You are then stepping out into the CRT calls and the VC++ 2005
_Express__Edition_ doesn't have the CRT source code. What you should do
is just press F5 there to finish it off there.
Jun 21 '07 #5
In article <f5**********@news.onet.pl>,
Herhor <he**************@onet.euwrote:
> I have exactly the same problem, and it drives me nuts that a bug
like this could ship. *EVERY* *BLOODY* *TIME* I hit F10, it goes into
the disassembly, if I've ever once looked at the disassembly. Doesn't
matter if I've gone back to the source; it says "here's more
disassembly."
>Shit! I don't know what is going on because VC++ is a decade long MS
product line, so it should be such silly bug free...
This bug is new with 2005. Never had it in VC6, 2002, or 2003.
It's still REALLY annoying when it happens. Here's a hint, MS: if
disassembly view is off, and I have no breakpoints placed in the
disassembly before the next line (or in the current function, for that
matter), then I don't want to see the disassembly.

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
Jun 21 '07 #6

"Herhor" <he**************@onet.euwrote in message
news:f5**********@news.onet.pl...
>I also received interesting answer from one guy at MSDN forum:

You are then stepping out into the CRT calls and the VC++ 2005 _Express
Edition_ doesn't have the CRT source code. What you should do is just
press F5 there to finish it off there.
Well, what do you expect to happen when you step off the end of 'main'? It
is the end of your code, after all.

Jun 21 '07 #7
Ben Voigt [C++ MVP] pisze:
>
"Herhor" <he**************@onet.euwrote in message
news:f5**********@news.onet.pl...
>I also received interesting answer from one guy at MSDN forum:

You are then stepping out into the CRT calls and the VC++ 2005
_Express Edition_ doesn't have the CRT source code. What you should do
is just press F5 there to finish it off there.

Well, what do you expect to happen when you step off the end of 'main'?
It is the end of your code, after all.
I simply expected debugging end without opening any Disassembly Widow.
Jun 21 '07 #8

"Herhor" <he**************@onet.euwrote in message
news:f5**********@news.onet.pl...
Ben Voigt [C++ MVP] pisze:
>>
"Herhor" <he**************@onet.euwrote in message
news:f5**********@news.onet.pl...
>>I also received interesting answer from one guy at MSDN forum:

You are then stepping out into the CRT calls and the VC++ 2005 _Express
Edition_ doesn't have the CRT source code. What you should do is just
press F5 there to finish it off there.

Well, what do you expect to happen when you step off the end of 'main'?
It is the end of your code, after all.

I simply expected debugging end without opening any Disassembly Widow.
Ok, well, you aren't quite at the end of the program yet. There is still
some cleanup to be done, so you are allowed to see it. But stepping off the
end of main is pretty pointless unless you want to look at the library
cleanup, so the advice you got to hit F5 and let the program run to exit was
good.

Jun 21 '07 #9
Ben Voigt [C++ MVP] pisze:
>
"Herhor" <he**************@onet.euwrote in message
news:f5**********@news.onet.pl...
>Ben Voigt [C++ MVP] pisze:
>>>
"Herhor" <he**************@onet.euwrote in message
news:f5**********@news.onet.pl...
I also received interesting answer from one guy at MSDN forum:

You are then stepping out into the CRT calls and the VC++ 2005
_Express Edition_ doesn't have the CRT source code. What you should
do is just press F5 there to finish it off there.

Well, what do you expect to happen when you step off the end of
'main'? It is the end of your code, after all.

I simply expected debugging end without opening any Disassembly Widow.

Ok, well, you aren't quite at the end of the program yet. There is
still some cleanup to be done, so you are allowed to see it. But
stepping off the end of main is pretty pointless unless you want to look
at the library cleanup, so the advice you got to hit F5 and let the
program run to exit was good.
OK. I am simply too accustomed to Borland's and GDB's debuggers because
both of them automatically end main() function without calling assembler
window to show user low level memory clean-up.
It seems I must get used to doing programs with MS VC++ IDE closer! :)
Jun 21 '07 #10

"Herhor" <he**************@onet.euwrote in message
news:f5**********@news.onet.pl...
Ben Voigt [C++ MVP] pisze:
>>
"Herhor" <he**************@onet.euwrote in message
news:f5**********@news.onet.pl...
>>Ben Voigt [C++ MVP] pisze:

"Herhor" <he**************@onet.euwrote in message
news:f5**********@news.onet.pl...
I also received interesting answer from one guy at MSDN forum:
>
You are then stepping out into the CRT calls and the VC++ 2005
_Express Edition_ doesn't have the CRT source code. What you should do
is just press F5 there to finish it off there.

Well, what do you expect to happen when you step off the end of 'main'?
It is the end of your code, after all.

I simply expected debugging end without opening any Disassembly Widow.

Ok, well, you aren't quite at the end of the program yet. There is still
some cleanup to be done, so you are allowed to see it. But stepping off
the end of main is pretty pointless unless you want to look at the
library cleanup, so the advice you got to hit F5 and let the program run
to exit was good.

OK. I am simply too accustomed to Borland's and GDB's debuggers because
both of them automatically end main() function without calling assembler
window to show user low level memory clean-up.
It seems I must get used to doing programs with MS VC++ IDE closer! :)
Well, your problem seems less severe that what other people are talking
about... that the debugger jumps to disassembly
in the middle of their code. You expected to get past your code, and have
an easy workaround. Hopefully as you use VC++ more it will seem less
strange.

Jun 22 '07 #11
On Jun 21, 4:39 pm, Herhor <herhor_ANTYSP...@onet.euwrote:
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;
// ................
> return 0; // debug caret placement -Disassembly Window emerges
here when F10 pressed

}

Could you tell me how to disable this feature because low-level
debugging isn't necessary yet in my situation at all.
use msil dissambler

Jun 28 '07 #12

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

Similar topics

5
5891
by: Greg | last post by:
I am developing an application where I need to secure a workstation for periods of time. I can use BlockInput to stop users from task switching or messing with the keyboard, but I would like to...
4
4140
by: Steve | last post by:
I have the MDI MFC application ported to .NET. Now this application include mixed managed/unmanaged code. The application displays progress dialog with the cancel button during lenghtly...
1
1540
by: Stephen Corey | last post by:
Why doesn't the Intellisense feature work in the Immediate/Command window in VC++ .NET 2003? In VB.NET 2003, it works fine. For example, typing: ?this. in VB.NET would bring up the...
2
11761
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
13401
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...
16
6229
by: MLH | last post by:
If I give someone a runtime app, they can open the database window by pressing the F-11 key. How to prevent???
2
1666
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...
1
4108
by: Nathan Mates | last post by:
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...
3
2214
by: =?Utf-8?B?bWFydGluMQ==?= | last post by:
Hi, All, I use vb 2005 to create window app, and try to disable close button/item on the top right coner of window, can anyone can help this out? Thanks for yuor time, Martin
0
7203
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
7089
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
7339
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
5581
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,...
0
3168
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3157
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1515
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 ...
1
738
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
389
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...

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.