Hello everyone,
I'm trying to understand how a certain library works. I've compiled it with my added prinfts and everything is great. Now I want to stop the example program during runtime to look at the call stack, but I can't quite figure out how to do it with gdb. The function I want to break on, is inside a shared library. I've revie...
I have a small multithreaded script running in django and over time its starts using more and more memory. Leaving it for a full day eats about 6GB of RAM and I start to swap.
Following http://www.lshift.net/blog/2008/11/14/tracing-python-memory-leaks I see this as the most common types (with only 800M of memory used):
(Pdb) objgraph....
When I try to set "C:\windows\System32\inetsrv\InetMgr.exe" as the startup program for a Visual Studio project (to test an IIS 7.5 extension), it is rejected with the message "The external program cannot be found".
If I try to select the EXE manually by clicking the ellipses (...) button, the EXE is not in the folder. But if I access th...
I am developing a cross-platform application in C++ in VS2005. I already know how to run a remote process on a windows box, attach it, and debug from my VS.
Is there a way to do debug a running process on Linux for example? What about other *nix platforms such as Solaris or AIX? I can do emacs+gdb, but if this can be done from VS I'd pr...
Is debugging JavaScript as easy as debugging a C++/C#/Java application (given the best IDE available), or are the current tools much more limited and less user friendly, making debugging a headache?
...
Using C++ with Visual Studio, I was wondering if there's an API that will print the callstack for me. Preferably, I'd like to print a callstack 5 levels deep. Does windows provide a simple API to allow me to do this?
...
I wonder where to put the optimization and debugging options in Makefile: linking stage or compiling stage? I am reading a Makefile:
ifeq ($(STATIC),yes)
LDFLAGS=-static -lm -ljpeg -lpng -lz
else
LDFLAGS=-lm -ljpeg -lpng
endif
ifeq ($(DEBUG),yes)
OPTIMIZE_FLAG = -ggdb3 -DDEBUG
else
OPTIMIZE_FLAG = -ggdb3 -O3
endif
ifeq ($(PROF...
I'm a newbie with WinDbg and got this dump from the WER ReportQueue folder on a 64-bit Windows 2008 Server.
I need to examine the dump and want to do so on my developer machine on which I've installed the Debugging Tools for Windows package.
When I try to load SOS I got the following error which I've never seen before:
0:035> .loadby so...
Hi,
I am learning to solve some runtime error with gdb. Here are my questions:
when runtime error happens because some access operations of some memory is conflicted, can I find out in the dumped core the address of that memory?
Given an address, is it possible to find out which variable is using it (the address may be at the begining...
I've been trying to get this page to run on my machine under Google App Engine. One file at a time, I think I have found all the missing files, and .gifs, and layouts, etc..., and now have them on my machine and being served properly. No more critical errors as observed from FireBug.
Here are the differences between my test and the p...
I have upgraded what had been a working AD Users and Computers property sheets extension from Visual Studio 2003 to 2008 and am trying to debug it. The symptoms are that MMC.EXE crashes when selecting that property sheet tab.
I tried attaching to mmc.exe, but although the property sheet displayed the tab, the DLL is not on the call sta...
Hello
I have a very simple windows Service that is developed in vb.net 2008. When I try to debug it by going to tools-> Attach to process though I see my service it is disabled and Type of Managed and I cannot select the process.
How do I debug my service?
Thanks
...
Hi,
I have to debug a very big program, which takes around 10 minutes until it reaches the most important debugging state. I just want to modify some values in this part of the program, but sometimes I would like to go back and modify them again, like travelling to the past. As far as I know it is called historical debugging. Reading so...
So I have just followed the advice in enabling debug symbols for Release mode and after enabling debug symbols, disabling optimization and finding that break-points do work if symbols are complied with a release mode, I find myself wondering...
Isn't the purpose of Debug mode to help you to find bugs?
Why bother with Debug mode if it l...
I am currently working on a large project, and I spend most of the time debugging. While debugging is a normal process, there are bugs, that are unstable, and these bugs are the greatest pain for the developer. The program does not work, well, sometimes... Sometimes it does, and there is nothing you can do about it.
What can be done abo...
I've built a unit test project for a library in VS 2008 C#. The library will react to commandline arguments. I have set the unit test's Properties -> Debug -> Start Options with default arguments to trigger specific reactions in the target library. My questions are:
1) When the library code executes Environment.GetCommandLineArgs() i...
I have a completely blank ".aspx" file residing on an IIS6 web server. The server has .net 3.5 installed.
When executed, this file generates an "Illegal characters in path" error. A full stack trace of this error is available here.
The problem can be temporarily cured by IISReset. However, once any site on this server starts exhibit...
If I open the script and set a breakpoint, it is ignored. In fact, if I close and re-open the script, the breakpoint is no longer there.
Even "Stop" commands do not cause it to break.
If I put a break point on the containing Data Flow Task in the Control Flow diagram, it stops, but when I try to step into it, I get the error messa...
I'd like to get hold of version 2.0.50727.832 of System.Windows.Forms.dll - does anyone know where I can find it, without installing the correpsonding version of the .NET Framework?
Background: A customer has just reported a crash in my product. I believe it's due to a bug in a previous version of the .NET framework, which is fixed in ...
Currently, when I get an error on an erb template (for use with HTTPServer/cgi) I do the following:
If it's a small change, revert, save and retest.
For a large change or new file, delete or comment 1/2 the code, and retest. Perform a binary search until I've deleted/found the broken code.
The call stack doesn't seem to correspond t...