what tools do you use to debug your asp.net application? - asp.net

this is acutally one of the interview questions I had. I didnt really use any tools to debug, only use trace, debug, breakpoint, command window.
I dont think my answer is what they are looking for. please tell me what tools do you use to debug your asp.net application and how do you debug the applicaiton in both Dev and Production environment.

Visual Studio is the most powerful debugger in the world, but mostly limited to server-side code.
Firebug, or the built-in dev tools in Chrome and IE for JavaScript
Fiddler for examining web requests, AJAX, etc.
SQL Server Profiler to find SQL-to-ASP discrepancies, query timing, etc
Red Gate tools for memory profiling, finding leaks. VS also has good profiling tools, depending on what version you're using.

Most of the dot net developers are using Visual studio debugger for all dot net applications such as ASP.NET, VB.NET, Console applications.
For ASP.NET application, you can debug server side & client side codes from VS (when you are running the application from VS). It will be in DEV & Prod environment you can use the latest DLL and attach debugger mode and test it in VS.
For Client side, you can use firebug in firefox, dev tools in Chrome and IE for JavaScript.
For more details please see this link.

Well it really depends on what you are debugging?
I often use Fiddler for trafic debugging and IE Deveoper Tools or Firefox Firebug for css, html and sometimes javascript debugging.

Visual Studio Debug, Firebug for Firefox with Firecookie addon, IE Developer tools and SQL Profiler for starters.

Related

Limited browser functionality when developing in Windows 8

Has anyone else run into this problem and resolved it?
I am developing with Visual Studio 2010 in a clean install of RTM of Windows 8. While developing an ASP.NET application and RUNNING it with the Debugger Attached, I can not click on HTML links in ANY application and have it open up a browser window.
I will be running(debugging through VS) my application in Firefox, and I can't click on links sent in Google Talk or Outlook.
If I stop the application from running, I can then click on those links.
I have also seen that while debugging, I am using jQuery Drag-N-Drop HTML 5 functionality in my application. I can't use that functionality while it is running under the debugger, it just doesn't work. This happens with all browsers (Chrome, Firefox and IE). But if I stop debugging, and run it without the debugger on, it then works.
Any ideas?
Try to disable the debuging for "Javascript" in Visual Studio 2012.

how to use non-IE debugger in visual studio 2005?

I am building an asp.net website on vs2005 (c#) and I can't find a way to debug using a browser that is not IE.
I managed to open pages in non-debug mode with different browsers by using "browse with..." on any file's context menu and even setting the desired browser as default if i wish.
but I can't find a way to make this alternative browser work when I do it in debug mode (start debugging button/F5).
Is there any way to do this? I searched around a lot and all I found is a solution for vs2003 which doesn't seem to work in vs2005.
thanks,
Asaf

how to enable script debugging in visual studio 2008 when using Firefox

I'm using Firefox as my default browser and I'm trying to debug java script in side asp.net page visual studio 2008 with Firefox browser.
how to enable script debugging in visual studio 2008 when using Firefox?
by the way, I installed JavaScript Debugger plug-in for Firefox.
Unfortunately there's no way to attach to a non-IE browser in Visual Studio unless someone knows of a trick I don't. You'll want to either use the infinitely useful Firebug Extension for Firefox or the more feature rich Venkman debugger.
I have had issues with scripts being cached in FF while you're developing, so I would suggest making frequent use of the [CTRL][SHIFT] + Delete shortcut to clear your cache. Another trick I use is to insert
debugger;
into your script where you want to make sure you break into the debugger. I'm sure this works in Firebug and may also in Venkman.
Happy debugging.

VS 2008 IDE keeps stopping on jQuery errors

I just installed VS2008 on a brand new Win7 machine and have started at a new company. I am now running the company's main project and all is well...except that, for some reason, .Net keeps breaking on some javascript errors. This isn't in the browser (although it only happens when running IE, in this case version 8).
I'm at a loss as to where to find the option to turn off the javascript debugging in VS 2008.
Can anyone point me in the right direction?
The setting is actually in IE.
Tool -> Internet Options -> Advanced
Under browsing
Check Disable Script Debugging.

IDE Suggestion required.Envionment : ASP.NET-VB-JAVASCRIPT

I am working on a ASP.Net project creating a Outlook like calendar scheduler app.
I need to implement javascript on the webpages, but VS 2005 that I am using now is not very helpful, like intellisense or debugging,etc.. in case of javascript. I am planning to use jQuery in the app too.
Questions :
Is there some feature of VS 2005 that helps in javascript, that i dont know, or should I move to VS 2008 (is it better than VS 2005 in this regard?) ?
And also tell me a good IDE to practice javascript, in a HTML-Javascript environment. I am not going to use Rails or PHP or python.
Thanks.
It would be helpful for you to provide details on what sort of "help" you're looking for.
VS2008 has better JavaScript support than VS2005 in general, including JavaScript debugging. Here's a link from Scott Guthrie about VS2008 JavaScript support.
With jQuery, you can add intellisense to Visual Studio to help you out. Here's another link to a post from Scott Guthrie about enabling the intellisense.
I agree that VS 2008 is much better for the environment you are considering, as you can easily add intellisense support for jQuery. VS 2008 can also debug inside it's own webserver or IIS which means that it's very easy to test your environment.
For our projects we use VS 2008 and code using the MVC framework which has incorporated jQuery. I run each web project inside the debug environment before we deploy to IIS for final testing. I use firebug to debug JS in Firefox, Chrome and safari have their own debuggers and VS 2008 handles IE for me.
Another nice feature of VS 2008 is the ability to publish projects to a specific location copying only the required files. I wouldn't want to publish to a live environment but to create the required files within the final testing environment first is a much needed time saver.
Regarding your second question, RubyMine is a great environment for writing JavaScript - great IntelliSense, and it teaches you best practices, too (something that Visual Studio lacks).
It's quite funny that this isn't that much advertised on the product highlights page (it's in brackets, heh)...

Resources