I was writing a function to figure out if a given system of linear inequalities has a solution, when all of a sudden it started giving the wrong answers after a seemingly innocuous change.
I undid some changes, re-did them, and then proceeded to fiddle for the next two hours, until I had reduced it to absurdity.
The following, inserted...
So I'm trying to debug this strange problem where a process ends without calling some destructors...
In the VS (2005) debugger, I hit 'Break all' and look around in the call stacks of the threads of the misteriously disappearing process, when I see this:
This definitely looks like a SO in the making, which would explain why the proce...
I'm trying to find a simple TCP/UDP debugging tool. The tool should act like a client or a server, display incoming messages, allow sending messages, etc. Ideally, the tool would have a GUI and be extremely easy to use.
For the life of me I can't find anything adequate. All tools I tried either truncate messages, inject dummy messages i...
I sometimes find myself trying to fix a stubborn bug, only after a while figuring out that something quite obvious was wrong.
This happens to me when I think the problem is related to something and I kind of get 'blind' for other things that can be wrong.
Most of the times it helps to have a night of sleep and the next morning you see ...
Most bugs are fairly simple, easily reproducible, and easy to debug. What do you do when you run into ones that are hard or impossible to repro under debugger, i.e.one of these?
Our app is a multi-threaded app that is furthermore complicated by the fact that it communicates with multiple clients via remoting and sometimes there're bugs...
I've got a visual studio addin written by developer who is no longer at the company and have no idea how to debug it. But I want to add a feature so it can recurse into solution folders.
Sounds simple but I'm not sure the api allows testing for this?
Well there's got to be a way because AnkhSVN and VisualSVN work fine with Solution F...
How can I determine what 'mode' my site is running under?
In this specific case, I have code in the code-behind pages that should act one way in 'release' mode - that is someone navigating there with a browser, and another way if I'm in debug mode coming from VS2008. (These are things like identifying which SQL connect string to use, w...
I have recently been through the pain of converting an legacy WebSite project to a (C#)Web Application Project. During this time I also migrated the code from VSS control to Subversion on a dev server.
When debugging the application under VS2008 the project can literally take 4/5 minutes to completely load up. The majority of this time ...
Are there any tools available to monitor all current IIS requests on a server? I have some requests that are hanging, and I'd like to be able to identify which requests are hung, and then kill those specific requests, without affecting the rest of the requests, or the server itself.
I know that the IIS toolkit has a tool called "Request...
I got this idea of expanding my trace() messages.
Why
trace() is all over my code, I want to turn them on/off by a simple command and maybe add some sort of priority functionality to the trace(), i.e.
myTrace.TraceMsg("loosehere",debugme, 0);
myTrace.TraceMsg("winhere",debugme, 1);
And when I run, only the one with the higher pr...
Hi, I'm frustrated.
I already have a window open with the web site I'm debugging. I don't need VS to launch another one for me every time I need to debug.
Is there a way to stop this behavior?
Thank you.
...
I don't have direct network access to the linux host I'm debugging PHP/Javascript code on. I SSH to a jump box, then use FoxyProxy to tunnel my firefox requests through my SSH session using SOCKS forwarding.
I want to be able to debug the javascript code in IE, but unfortunately my FoxyProxy setup only works through the FireFox extensi...
Is there a function and/or object and/or extension in PHP that will let you view all the variabled defined in the current scope? Something like
var_export($GLOBALS)
but only showing variables in the current symbol table.
...
I have a swf that I need to attach the flex builder debugger to. I have full access to the source code, and can make a debug build of this swf.
However, this swf is being loaded by a non-debug build of another swf which I don't have source code to, and can't make a debug build with.
Is this possible?
I've tried mocking this up with t...
I need to set a breakpoint to certain event, but I don't know, where is it defined, because I've got giant bunch of minimized JS code, so I cant find it manually.
Is it possible to somehow set a breakpoint to for example click event of #registerButton, or find somewhere which function is bound to that event?
I found Firefox addon Javas...
In prior versions of visual studio one could specify paths for DLLs when debugging an application. I do not see a way to do this is version (2008). Is this due to the move toward deployment of apps with all DLLs, etc in the application's directory(ies)?
Am I missing something, or is there no way to do this?
EDIT:
It was in VC6
I thi...
I have a collection of extjs objects on a webpage, developing using Firefox so I can debug using Firebug. After a while I start IE to check compatibility and get a blank page in IE, but all works in FF.
In IE I get no Javascript errors.
...
As a hacker-in-training, I decided to go about making my own string_reverse function that takes a string, allocates memory for a new string, and returns a pointer to a new string, but I'm not getting what I desire, as this returns a segmentation fault.
#include <stdio.h>
#include <stdlib.h>
char* string_reverse(char* string);
char* s...
I have implemented a script language which supports
creation and usage of .NET objects.
To make easy to use I want to implement a user interface
for looking up variables in memory.
I checked the debug/watch variable windows in Visual Studio
and in Eclipse and they both seem to use the same pattern -
tree view representation of variabl...
In .NET applications is generating debug info (pdb) making my application slower in runtime? or do they only comes into the play when the application crashes?
...