debugging

How can I locally debug file permission issues in Visual Studio?

I want to debug an ASP.Net website as it attempts to write a file to a directory. When actually deployed this file would possibly not be writeable by the worker process so an error would be thrown, this is not a problem as I just want to catch the error, inform the user and move on. Of course, if I'm debugging on my local machine then ...

HTTP Debug Recorder and Auto-responder

Can you recommend a good HTTP Debug Recorder and Autoresponder? I usually use fiddler's autoresponder, but it does not enable rules to be set by POST information, only by querystring. ...

C++ Swig Python (Embedded Python in C++) works in Release but not in Debug

Platform: Windows 7, 64 bit (x64), Visual Studio 2008 I chose Python & Swig binding as the scripting environment of the application. As a prototype, created a simple VS solution with main() which initializes Python (Py_Initalize, Py_setPyHome, etc) & executes test.py. In the same solution created another project which is a DLL of a si...

Setting breakpoint in c# code with ADPlus

Hello, I am wondering if it is possible to set a breakpoint in C# code using ADPlus. I find several examples of config files but they always works with native code. Like this one: <ADPlus> <Breakpoints> <NewBP> <!-- Set the breakpoint on ExitProcess. --> <Address>kernel32!ExitProcess</Address> <Type>BP</Ty...

vs2010: trying to debug javascript using Chrome: this is not a valid location for a breakpoint

Everytime I try to set a debug point in Javascript, eietehr while in Design mode or while runniong, I get the error: trying to set a breakpoint in javascript: this is not a valid location for a breakpoint When I go to VS2010's Options screen under Debugging Just In Time, I see that Managed, Native & Script are selected, I also plac...

Best way to figure out why didReceiveMemoryWarning is always getting called on a UIViewController

I have a UIViewController and I'm noticing that I've done something to where the didReceiveMemoryWarning method is getting called every time I run it on an actual device. I've run the project with Run > Run With Performance Tool > Object Allocations (and Leaks also). There are no leaks but I have no idea how to read or understand the "...

How can I debug a Perl program that suddenly exits?

I have Perl program based on IO::Async, and it sometimes just exits after a few hours/days without printing any error message whatsoever. There's nothing in dmesg or /var/log either. STDOUT/STDERR are both autoflush(1) so data shouldn't be lost in buffers. It doesn't actually exit from IO::Async::Loop->loop_forever - print I put there ju...

What is the process involved in viewing a webservice in a browser from within visual studio?

I have created a new VS2008 ASP.Net Web service project, with the default name WebService1. If I right click on the Service1.asmx file and select 'View in Browser' what are the processes that go on to make this happen? I am asking because I have a situation where when I run this from a visual studio project started in our development ...

Is it possible to inspect the contents of a Table Value Parameter via the debugger?

Does anyone know if it is possible to use the Visual Studio / SQL Server Management Studio debugger to inspect the contents of a Table Value Parameter passed to a stored procedure? To give a trivial example: CREATE TYPE [dbo].[ControllerId] AS TABLE( [id] [nvarchar](max) NOT NULL ) GO CREATE PROCEDURE [dbo].[test] @controllerD...

How to run debug file on another computer?

I have a debug .exe file that i want to run on other machines that don't have MS Visual Studio 2008 installed on them. How can this be done? The release option doesn't work as the application does not function correctly when build in release (not sure why). At the moment I'm getting a message saying "This application has failed to start...

asp.net visual studio 2008 not launching debug page

I have an asp.net project in visual studio 2008 I press F5 and the "test page" does not launch and I don't understand why. Looked at the properties for the site and "start action" is correctly set to "use current page" Similar question. assuming it automatically launched above, how does one open a 2nd instance of the current debug sit...

Where does the creation of permissions live in Django?

I need to do some debugging, because the permissions for one of my models are created wrongly. So I tried to find the piece of code where Django creates the permissions upon syncdb and writes them in the database, but I haven't been successful at all; maybe I just overlooked the right lines of code, but if somebody can point me out the r...

Resources in static library question

Hello! This isn't a duplicate of http://stackoverflow.com/questions/531502/vc-resources-in-a-static-library because it didn't help :) I have a static library with TWO .rc files in it's project. When I build my project using the Debug configuration, I retrieve the following error (MSVS2008): fatal error LNK1241: resource file res_yyy.r...

Debugging a performance issue on ListBoxDragDropTarget (Silverlight Toolkit)?

I have a complex project using SilverLight Toolkit's ListBoxDragDropTarget for drag-drop operations and it is maxing CPU. I tried to reproduce the issue in a small sample project, but then it works fine. The problem persists when I remove our custom styles and all other controls from the page, but the page is hosted in another page's S...

How to set the correct Visual Studio version as JIT debugger?

I have VS2003, VS2005 and VS2008 installed on my machine. The C++ application is compiled with VS2005 but when it crashs and i select debug the Just-In-Time Debugging dialog comes up and only offers me "New instance of Visual Studio .NET 2003". Debugging a 2005 compiled program with 2003 is not possible. If i attach the process to ...

MySQL stored procedure debugging

Hello, do you have any tips for some GUI applications (free) that are capable of debugging MySQL stored procedures? I tried devArt dbForge MySQL Studio which worked just fine, but it's not free. Thanks for any tips. ...

Enabling debug menu in Safari for Windows

I found plenty of info on this for Safari 3, but things have evidently changed in version 4. I just happened to stumble upon the answer by experimenting, so posting it here for others. ...

How can i list and watch all global variables on watch windows of visual studio (for c++)?

When stopped at a breakpoint on main(), i can manually add name of a global variables to watch windows, but what i want is how to show a list of all global variables, because i'm using an external library, which contains many static things. Is it possible? Thanks in advance! ...

advanced Visual Studio kung-fu test -- Calling functions from the Immediate Window during debugging

I see some related questions have been asked, but they're either too advanced for me to grasp or lacking a step-by-step guide from start to finish (most of them end up being insider talk of their own experiment results). OK here it is, given this simple program: #include <stdio.h> #include <string.h> int main() { FILE * f; char...

How to debug a dll

I'm having problems with a dll that I downloaded from somewhere. How can I look inside the dll to debug it? ...