debugging

What's your favored method for debugging MS SQL stored procedures?

Most of my SPs can simply be executed (and tested) with data entered manually. This works well and using simple PRINT statements allows me to "debug". There are however cases where more than one stored procedure is involved and finding valid data to input is tedious. It's easier to just trigger things from within my web app. I have a...

What leads to a no suitable image found error on Mac OS X?

I followed Chris Hanson's advice about debugging framework unit tests in Xcode 3.1, but when trying to run the custom executable, the program crashes, stating the below error message [substituted $(BUILD_PRODUCTS_DIR) for the real location of the build products]. 2009-03-02 19:56:03.414 otest[28059:10b] Error loading $(BUILD_PRODU...

Debugging a flash stack overflow

I have a swf that is being loaded by a third party swf. I have source code and recompile my swf, but don't have code to the third party swf. Somewhere, likely in my code, there's a stack overflow. In a debug flash player, I get a nice popup dialog with a stack trace when the overflow occurs: Error: Error #1023: Stack overflow occurre...

How to get debug information for an abstract(?) pimpl in C++?

I have a wrapper class that delegates its work to a pimpl, and the pimpl is a pointer to a baseclass/interface with no data that is specialized in several different ways. Like this: class Base { void doStuff=0; }; class Derived { int x,y; void doStuff() { x = (x+y*2)*x; //whatever } }; class Wrapper { Bas...

Visual studio 2005 hangs when debugging

Visual studio debugger hangs while loading symbols for my application(native IA64), SP1 is installed. This started to occur, after i install debugging tools for windows(64 bit version), and reboot my computer. This issue is not depend on my project, even with new project debugger hangs. UPDATE: When i try to attach to the running proce...

Unable to debug SQL Server 2005 stored procedures in Visual Studio Team System 2008

I have been trying to debug SQL Server 2005 stored procedures, in Visual Studio Team System 2008. I connected to the database server and did a right-click "Execute", on the stored procedure. I even tried "Step Into Stored Procedure", with no luck. The IDE shows it is running, but I can not seem to break or step into the stored proce...

Include all files when debugging in Visual Studio?

How do I setup Visual Studio 2008 to include all files in the project root when debugging? I have a few files in the project root folder which are not copied to the bin/debug folder so when I am about to debug the application I have to manually copy the files. I'm looking for a way to make VS automatically include these files in the deb...

Logging vs. Debugging

Background: I've inherited a web application that is intended to create on-the-fly connections between local and remote equipment. There are a tremendous number of moving parts recently: the app itself has changed significantly; the development toolchain was just updated; and both the local and remote equipment have been "modified" to ...

Debugging multithreaded applications

I have an application written in C++ and MFC which is multithreaded running on windows. Occasionally I do get some complaints such as deadlocks or an unhandled exception which is caused because of these threads. Normally I use visual studio (if the problem is reproducible) or else use the WinDbg to analyse the dump files generated. Is th...

Rails: filter defined in lib file required in environment.rb disappears from filter_chain in production environment. Why?

Hi, In my rails application, I have a file in lib that, among other things, sets up a filter that runs on all controllers. When running under development environment, everything runs fine. However, under production the filter goes missing. Funny thing is, by inspecting the filter_chain, I noticed other filters remain, eg. those define...

Debug in VS as non-admin

I'm doing some WinForms development, running XP and VS 2005 (ancient, I know). I'd like to make sure my application can run without admin rights, but I'm too lazy to try to run VS as a non-admin, and I don't want to log in and out to test my app. Is there a way I can just debug as a non-admin? Is there a set of code access securit...

How to debug a Javascript proxy.pac file used for IE proxy settings?

does someone know if its posible to debug a proxy.pac, this file is written in Javascript. how can it be attached to some debug engine like Visual Studio or any other IDE ...

Which is the best, standard (and hopefully free) C++ compiler?

Saludos a todos en stackoverflow.com!! So... I'm a C++ newbie currently taking the subject of Data Structures, and I want to consult something with you guys: Since I started studying Systems Engineering, I've been using the last version of Dev-C++ for all my programming projects. It has done it's job well so far, but it has a FATAL fla...

debugger warnings while viewing StackOverflow?

In IE I can enable javascript debugging. When I view StackOverflow with debugging enabled, I get a debugger warning on pretty much every page. What's up with that? Am I doing something wrong? ...

Are Debug.Assert/Debug.Fail automatically conditionally compiled #if "DEBUG"

Are Debug.Assert/Debug.Fail automatically conditionally compiled #if "DEBUG"? Or is it more like if there is no debugger attached (even in release) it just doesn't do much of anything? If so, are there performance implications of leaving them in your code? Or are they really not meant to be in production code, only test or Conditional...

Debugging System.UnauthorizedAccessException help

I am trying to debug an application which was not written by myself when an event (adding a user) is fired the application throws a System.UnauthorizedAccessException. Are there an tools that you coulc recommend that would tell me what the application is trying to do?. I do know that is is most probably trying to access active directory...

Static vs. member variable

For debugging, I would like to add some counter variables to my class. But it would be nice to do it without changing the header to cause much recompiling. If Ive understood the keyword correctly, the following two snippets would be quite identical. Assuming of course that there is only one instance. class FooA { public: FooA() : c...

Debug with an incompatible Visual Studio, but with .pdb

Okay, weird situation: I need to Debug a VSTO Office Addin. This was written in Visual Studio 2008 Professional and debugging is usually done by loading the Project, Attaching to Outlook.exe and setting breakpoints - works fine. But I gave a situation where it does not work as expected on one machine, but I do not have VS2008 Pro on tha...

Is there a way to automatically avoiding stepping into certain functions in Visual Studio?

I'm aware of the "Enable just my code" debug option, but that only works for managed code. I'm looking for a way to step into a function call without having to step through, for example, an STL string cast operator because there is an implicit conversion from a char* to a string in one of the function's parameters. ...

Debugging Javascript in ASP.NET

I was wondering if the type of javascript errors can be grouped into different categories and if there was an easy way of debugging them. While working on a ASP.NET application, I generally see 2 different types of JS errors: Ones that say "Error occurred in xx. Do you want to debug"? Ones that show errors with a icon on the bottom lef...