473,791 Members | 2,995 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

C# Debugging Alternatives

Hi,

I'm interested in the alternatives to debugging C# other than Visual
Studio .NET
I have a large multi-threaded application, and I find that the
debugger that comes with Visual Studio .NET is not powerfu enough. Can
anyone direct me to different debuggers that would be better,
especially since the application is threaded?
TIA

Jul 12 '07 #1
7 1917
On Thu, 12 Jul 2007 11:43:58 -0700, phreaker <ph*******@hotm ail.comwrote:
I have a large multi-threaded application, and I find that the
debugger that comes with Visual Studio .NET is not powerfu enough. Can
anyone direct me to different debuggers that would be better,
especially since the application is threaded?
Visual Studio debugs multiple threads just fine. Other than its inability
to debug into kernel code, the VS debugger is one of the most, if not the
most, capable debuggers around.

If it's not suitable to your needs, you should be more specific about what
"not powerful enough" means.

Pete
Jul 12 '07 #2
Hi phreaker,

Have you ever heard about the sos.dll?
http://www.robherbst.com/blog/2006/0...windbg-sosdll/

Regards, Alex Meleta
[TechBlog] http://devkids.blogspot.com
Hi,

I'm interested in the alternatives to debugging C# other than Visual
Studio .NET

I have a large multi-threaded application, and I find that the
debugger that comes with Visual Studio .NET is not powerfu enough. Can
anyone direct me to different debuggers that would be better,
especially since the application is threaded?

TIA

Jul 12 '07 #3
"phreaker" <ph*******@hotm ail.comwrote
I have a large multi-threaded application, and I find that the
debugger that comes with Visual Studio .NET is not powerfu enough. Can
anyone direct me to different debuggers that would be better,
especially since the application is threaded?
What features are you looking for that VS.Net doesn't provide?

I've been building very large, very heavily threaded applications for a
number of years now. In 99%+ of debugging cases, Visual Studio has been
sufficent for debugging.

If you're having alot of problems with race conditions, it's probably not
the debugger that's holding you back, but something else.

There are the usual things to try:
- Make sure all your threads have names that make sense. This makes using
the Threads Window alot easier.
- Leverage "Freeze" & "Thaw" alot.

Really validate your locking. If you're having race conditions, your locks
are probably specified at the wrong levels, or have the wrong scope.

--
Chris Mullins, MCSD.NET, MCPD:Enterprise , Microsoft C# MVP
http://www.coversant.com/blogs/cmullins
Jul 12 '07 #4
Thanks, I looked into that, and it seems quite useful.

I think maybe what I'm looking more for is a profiler. I looked into
DevPartner Studio, and it looks quite complete. Anyone have any
opinions on how effective this software package is?

I mainly will be using this for determining which threads are taking
up which resources, and hopefully determine (with the help of the
software package) where in the code I should be optimizing.
Thanks,
David

Jul 13 '07 #5
On Fri, 13 Jul 2007 11:53:20 -0700, phreaker <ph*******@hotm ail.comwrote:
[...]
I mainly will be using this for determining which threads are taking
up which resources, and hopefully determine (with the help of the
software package) where in the code I should be optimizing.
A good profiler is worth it's weight in gold, no doubt.

But don't discount the usefulness of just sticking in some timing code
where you are suspicious of execution time. The Stopwatch class makes
this very easy, and you can get some easy, applicable data this way,
without all the complexity of a profiler (and without having to figure out
which one you like best :) ).

Pete
Jul 13 '07 #6
On Jul 13, 1:53 pm, phreaker <ph_rea...@hotm ail.comwrote:
Thanks, I looked into that, and it seems quite useful.

I think maybe what I'm looking more for is a profiler. I looked into
DevPartner Studio, and it looks quite complete. Anyone have any
opinions on how effective this software package is?

I mainly will be using this for determining which threads are taking
up which resources, and hopefully determine (with the help of the
software package) where in the code I should be optimizing.

Thanks,
David
Another profiler that I recently got an ad for is the Ant Profiler
from Red-Gate. I think they have a trial version you can download.

Chris

Jul 17 '07 #7
OD
I think maybe what I'm looking more for is a profiler.

VS profiler is very good. I used it a few times and returned info were
good enough to locate time and resource consuming parts of the
applications.

--
OD___
www.e-naxos.com
Jul 17 '07 #8

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

Similar topics

79
4856
by: Tim Tyler | last post by:
PHP has some pretty funky error messages: "parse error, unexpected T_IF"; "Parse error: parse error, unexpected T_CONSTANT_ENCAPSED_STRING"; Humans often see these - shouldn't they be more human readable? ....and why are there no stack backtraces? When a problem arises, I am often interested in knowing where the
43
5029
by: Steven T. Hatton | last post by:
Now that I have a better grasp of the scope and capabilities of the C++ Standard Library, I understand that products such as Qt actually provide much of the same functionality through their own libraries. I'm not sure if that's a good thing or not. AFAIK, most of Qt is compatable with the Standard Library. That is, QLT can interoperate with STL, and you can convert back and forth between std::string and Qt::QString, etc. Are there any...
13
2941
by: python | last post by:
hello and thanks for reading this, i have been a dos/windows user using some form of the basic language for 30 years now. i own and run a small programming company and there is one feature that keeps me in the windows/basic world. while i will agree that it has not evolved well, it does have one awesome feature that i have yet to see replicated in any linux product that i know about so far. i am a long time windows user and have had...
16
1752
by: Dean R. Henderson | last post by:
I have a project built for ASP.NET that recently started running really slow in debug mode (it takes about 10 seconds or more to step from one line of code to the next). This just started recently and only impacts one ASP.NET project. I have some other ASP.NET projects that I can step thru with the debugger with almost instant response. I also have some Windows Forms projects that work normally. I am running Visual Studio 2003 and...
0
3230
by: ZMan | last post by:
Scenario: This is about debugging server side scripts that make calls to middle-tier business DLLs. The server side scripts are legacy ASP 3.0 pages, and the DLLs are managed DLLs converted/developed with VB.NET. What I want from debugging is to be able to step into the methods in the DLLs called from ASP scripts using Visual Studio .NET. Background: For typical script debugging issues, you can read and follow the two documents on...
6
4613
by: Maitre Bart | last post by:
One said: "The more time you'll spend on designing your app, the less you'll spend time debugging it." I agree with that, but chances are, you'll still need to debug it anyway! And the larger the app, the higher the chances, yours or not. There are many books that teach C++, but not so many that teach how to debug C++ apps. Like there are some "must read" for the first category, I imagine there likely to exist some "must read" too for...
5
6399
by: John Henry | last post by:
I am back against the wall trying to migrate my multithreaded application from Python 2.3 to 2.5. The part of the code that's failing has to do with queues (2.3 queues and 2.5 queues are not the same). Since WingIDE doesn't support multithread debugging (they've been saying that one day they might support that - and that was 2003), I am starting to look for alternatives. debug under Eclipse/Pydev. I did a google search of this...
0
925
by: Davidhere40 | last post by:
I'm having a hard time figuring out how to structure my development environment for web services and a database. I have a remote server with sql server 2005 on it. I'm building an application which uses windows forms as web service clients and the web service acts as a proxy to the database. My problem is, how the hell do people normally set things up so that to work with databases. Do they normally use one database for both development...
7
1443
by: phreaker | last post by:
Hi, I'm interested in the alternatives to debugging C# other than Visual Studio .NET I have a large multi-threaded application, and I find that the debugger that comes with Visual Studio .NET is not powerfu enough. Can anyone direct me to different debuggers that would be better, especially since the application is threaded?
0
10427
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
10207
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
10155
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
9995
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...
1
7537
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 instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6776
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
5431
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...
2
3718
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2916
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.