473,395 Members | 1,616 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.

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 1898
On Thu, 12 Jul 2007 11:43:58 -0700, phreaker <ph*******@hotmail.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*******@hotmail.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*******@hotmail.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...@hotmail.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
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...
43
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...
13
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...
16
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...
0
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...
6
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...
5
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...
0
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...
7
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...
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: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
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
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
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...
0
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,...

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.