473,769 Members | 6,926 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

slow debugging visual studio 6.0

Hi,
I am debugging my code of visual c++ 6.0.
I found it is extremely slow to run after the code is compiled as
"debug" mode and OK as "release mode", I would say the difference is
around 10x. But I am developing and mainly working on "debug" mode, it
is very clumsy to wait for 10 mins for just one run.
I did a check and I suppose it is related to the heap check in "debug"
mode, so I am wondering if I can turn it off in visual c++ 6.0 when I
compile it as "debug" mode.
Thanks

Jan 29 '07 #1
4 3206
yu******@gmail. com wrote:
I am debugging my code of visual c++ 6.0.
I found it is extremely slow to run after the code is compiled as
"debug" mode and OK as "release mode", I would say the difference is
around 10x. But I am developing and mainly working on "debug" mode, it
is very clumsy to wait for 10 mins for just one run.
I did a check and I suppose it is related to the heap check in "debug"
mode, so I am wondering if I can turn it off in visual c++ 6.0 when I
compile it as "debug" mode.
We feel your pain.

Is there a C++ language question hiding here somewhere? Methinks you
got confused and posted here instead of one of 'microsoft.publ ic.vc.*'
newsgroups. Your question cannot be answered in terms of C++ language.

V
--
Please remove capital 'A's when replying by e-mail
I do not respond to top-posted replies, please don't ask
Jan 29 '07 #2
yu******@gmail. com wrote:
Hi,
I am debugging my code of visual c++ 6.0.
I found it is extremely slow to run after the code is compiled as
"debug" mode and OK as "release mode", I would say the difference is
around 10x. But I am developing and mainly working on "debug" mode, it
is very clumsy to wait for 10 mins for just one run.
I did a check and I suppose it is related to the heap check in "debug"
mode, so I am wondering if I can turn it off in visual c++ 6.0 when I
compile it as "debug" mode.
Thanks
You can tweak what optimizations etc... are done in debug mode.
My guess is however if you are using a lot of stuff (containers,
strings, etc...) form the library that the issue is the disabling
of inlining. You could try turning that.

The proper way to investigate this would be to try a group with
'micorosoft' in it's name however.
Jan 29 '07 #3


On Jan 29, 2:02 pm, yuanl...@gmail. com wrote:
Hi,
I am debugging my code of visual c++ 6.0.
I found it is extremely slow to run after the code is compiled as
"debug" mode and OK as "release mode", I would say the difference is
around 10x. But I am developing and mainly working on "debug" mode, it
is very clumsy to wait for 10 mins for just one run.
I did a check and I suppose it is related to the heap check in "debug"
mode, so I am wondering if I can turn it off in visual c++ 6.0 when I
compile it as "debug" mode.
Thanks
I too feel your pain here....

Thankfully the days of long debugging sessions are long over for me as
I write small unit tests for every line of code....

in fact I write one unit test before the application code that will
make it pass. - rinse and repeat...

By doing this if I code something that does not make the test pass,
then because I've only typed a tiny amount of code, I usually delete
it and start again (instead of debugging it to find out why)

Strangely this technique is far faster (for me and others YMMV) than
the typical Code & Debug session. Plus I get a large suite of unit
tests I can run as many times as I want - nice regression testing
there!

If you want to find out more google 'Test Driven Development'

Andrew

Jan 29 '07 #4
yu******@gmail. com wrote:
>Hi,
I am debugging my code of visual c++ 6.0.
You will have a much better chance of getting to somebody who actually
knows what's going on by posting in microsoft.publi c.vc.ide_genera l

--
Tim Slattery
Sl********@bls. gov
http://members.cox.net/slatteryt
Jan 29 '07 #5

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

Similar topics

1
1494
by: Brian Henry | last post by:
I know some of you have seen this problem. Stepping through code in the debugger is slow as heck in Visual Studio 2005. Well here is the problem, Edit and continue. Because edit and continue does run time compileing of code as it executes, it causes a big slow down in execution time. To disable this and return the debugger to the normal speed as it was in VS.NET 2003, do the following. Go to tools menu > options Select debugging form...
1
3284
by: Jeffrey Roughgarden | last post by:
I wonder if anyone has any tips to improve Visual Studio's debugging performance? I have a 20 page web app that takes 90 or more seconds to bring up the logon page after I hit F5. Start without debug (Ctrl-F5) is much quicker, but of course, I don't have the debugging then. I am running this on a 2GHz Compaq laptop, with both the server and database on the same machine. After the first page loads, subsequent pages are slightly slow on...
5
1157
by: Brian Henry | last post by:
Now don't blame it on my system because its a dual core pentium D at 3.2GHz with 4GB RAM running windows xp 64bit on a RAIDed 10K RPM hard drive... but wow is stepping thorugh code in VB 2005 slow as heck... i step one line it takes 10+ seconds to get to the next line... and gets even worse when it jumps across procedures or object insanciations....
6
2509
by: KevinGPO | last post by:
I am currently developing a website in ASP (VBScript) using MS Visual C#.NET IDE. I just create a new "ASP.NET Web Application" and point to my local webserver (IIS) of my website address. Then I just go through each file/folder and right-click, selecting "Include in project". The IDE is nice in that it checks, verifies id tags, etc. What am wondering is whether it's possible to debug my ASP website using the MS Visual Studio.NET's...
3
1964
by: michael | last post by:
Hi, I am trying to write an ASP.NET web app, in Visual Basic.NET, using Visual Studio.NET 2004, .NET framework 1.1.4322 SP1 Running the project/app on localhost while in dev/write/debug stage When I say "trying", I do have it written, and it works ... sort of, for some cases. The problems/issues?
17
3027
by: Marc | last post by:
Hi, Before I had installed Visual basic.net 2003 on my laptop toshiba Tecra S1 Tecra S1 Centrino 1.6GHz / XP Pro / 15.0 256mb Windows XP servic pack2 After installing Visual Studio 2005 My computer seems to be too slow to debug my developping applications.
5
1484
by: Lars Schouw | last post by:
How come debugging c# code in VS2005 is much slower than debugging Java code in IntelliJ IDEA Is it possible to change any compilation flags to make it go faster? Thanks Lars
7
3324
by: =?Utf-8?B?bGxldmk=?= | last post by:
Hi there. I have a simple web page ( 1 textbox, 1 label, 1 button). The page runs under IIS, but it takes at least a minute before it allows me to enter keystrokes after pressing ctl+f5. environment: vista home premium, visual studio .net 2005. Any ideas as to why this is so slow? how may i resolve this issue? Thanks in advance,
7
4163
by: luker | last post by:
Hello Experts, I am writing an application for a device running windows xp embedded. I want to code on my developer pc and deploy the running executable to the embedded device. - The two boxes are linked directly by a network cable. - Both are in the same subnetwork and are able to ping each other. - Each box is sharing a directory. - Each box has a remotely shared directory opened in an explorer window. - The development pc is in...
0
9423
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10216
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10049
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9997
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 most users, this new feature is actually very convenient. If you want to control the update process,...
0
9865
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 choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
6675
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 into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5309
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5448
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
3
2815
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 effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.