Process has some 10 threads and all 10 threads entered DEADLOCK state( assume all are waiting for Mutex variable ).
How can you free process(threads) from DEADLOCK state ? .
Is there any way to kill lower priority thread ?( in Multi process case we can kill lower priority process when all processes in deadlock state).
Can we attach th...
Suppose I have a class library cl1 and a unit test for it that is called clt1. I can use Visual Studio's Attach to Process feature to attach to NUnit runner. This lets me debug cl1, for example set break points. It's a very helpful feature for debugging.
I'm in a need of this technique in Visual Studio and IE/FF. Suppose I have a web ap...
I have big process running. It spawns two threads. I want to debug those two threads separately. But there is only one gdb prompt. How to do this? Means I want to parallely see the execution of the threads.
...
Hi,
I have a timing bug in my application which only occurs when I use valgrind, because valgrind slows down the process so much.
(it's actually a boost::weak_ptr-exception that I cannot localize)
Now I wonder how to reproduce the bug with gdb. I don't see a way to combine gdb + valgrind.
Thanks.
...
Is it possible to somehow set a name for anonymous functions?
There is no need to add function names to the namespace for anonymous functions but I would like to avoid seeing a large amount of (?) in my javascript debugger so I can keep the call stack trace informative.
Also can I safely pass normal declared functions as arguments inst...
I have .NET service and I need to debug it.
I want it to stop when it reaches some place in code and start the debugger.
Can anyone provide some code sample?
UPDATE
Simply adding
Debugger.Launch();
does not work for Windows service.
...
Hi,
I'm looking for advice for books on .NET debugging, with an emphasis on topics such as debugging memory leaks, performance issues and so forth.
So if you know a good book covering these topics, please drop an answer.
Thanx!
...
My Visual Studio debugger detaches every time when I try to access a property in a web application. I don't use Visual Studio's inner webserver, just the standard IIS. It seems like that property has somewhere a stack overflow
(Server Application Unavailable)
, but I can't find it. There is an error message in the EventLog:
as...
I have a problem debugging web application deployed on Weblogic v 9.2 application server.
Debugging environment is the following:
Eclipse Europa
Oracle Enterprise Pack for Eclipse
When I run application set by step, if I click F6 (Step over) - everything is Ok.
But, when I click F5 (Step into) - debugging hangs, in Debug window, thr...
I have a custom control that is show only with a given set of config values.
I want to capture the trace.axd data and output it to this control.
web.config
writeToDiagnosticsTrace="true"
...
<listeners>
name="WebPageTraceListener"
type="System.Web.WebPageTraceListener, System.Web, Version=2.0.3600.0, Culture=neutral, PublicKeyT...
I know that here there is a duplicate but I would like, if possible, to be able to define a relative path for 'Start External Program' or any workaround that do not constrain me to add a complete new empty project to my solution.
I am using VB.NET in Visual Studio 2010 environment developing WinForms apps.
...
I have issues with debugging of a library loaded at runtime, and an unknown is:
Does winbase::LoadLibrary() load the .pdb in debugging mode?
Because if it doesn't, that would explain why I cannot use any debugging in my DLL, and if it does, that would at least tell me to search for the problem somewhere else.
Obvious follow-up: If it...
I wrote the following code to disable the a guest os's virtual monitor programatically:
def disableSecondMonitor():
import win32api
import win32con as C
name = win32api.EnumDisplayDevices(None, 1).DeviceName
devmode = win32api.EnumDisplaySettingsEx(name, 0)
devmode.Clear()
devmode.Fields = C.DM_PELSWIDTH | C.DM_...
I’m using Visual Studio 2010 to write unmanaged C++ code.
When debugging, anything printed using OutputDebugString or MFC’s TRACE macro goes to Visual Studio’s “Output” window.
I would prefer to see the output in DebugView instead, while still running under the MSVC debugger. Is this possible?
...
Folks,
Debugging a .net 4.0 app using WinDbg (I'm a beginner to WinDbg). I'm trying to break when I hit a stack overflow:
(NTSTATUS) 0xc00000fd – A new guard page for the stack cannot be created
Unfortunately, this overflow happens about 2-hours into a long-running process and logs tells me that it doesn't always happen at the same ti...
I am trying to learn more about the mechanics of executable files, but I have no background in assembler code. Is there any program I can use for this purpose? I would like to be able to pause a program in real time and read its memory dump at that instant. Is there anything like that for windows 7 32? What about for windows 7 64?
Thank...
Im trying to remote debug Tomcat (JPDA) on a server that is running two virtual hosts using the same Tomcat container. How do I ensure the debugger connects to virtual host A and not B.
Thanks!
...
I'm trying to hunt down why a POST request from a C# script isn't working, when the same request works fine in Python. I want to be able to have all the data sent by the script, and the response from the sever, to be displayed on the screen so that I can work out what the difference is between what the C# and Python scripts are sending.
...
I am unable to start my unit tests in debug mode in Visual Studio 2010 running on a Windows 7 x64 machine. If I run the unit tests in debug mode I get a BadImageFormatException:
Could not load file or assembly 'dbghelp.dll' or one of its dependencies. The module was expected to contain an assembly manifest.
at System.Reflection.Assembl...
Today something peculiar happened while debugging in VS 2008. I will give the small code snippet
List<IPageHandler> myPageList = TaskSOM.PageList;
if( myPageList != null && myPageList.Count > 0 )
{
PageHandler aPage = myPageList[0] as PageHandler;
...; // Some more code below
}
While running the application the typecast f...