I have a mixed-mode application in which I want to fire up the debugger if an error is found in the internal datastructures.
Strange enough, the DebugBreak and __debugbreak functions don't seem to work as expected (the .Net framework seems to intercept the breakpoint exception, leading to all kinds of nasty side effects).
The solution o...
From some books, I knew that the dbgeng.dll is the debug engine for the debugger, it exports lots of methods for debugging.
But with depends, I found that only 3 functions(as below) are exported in the dbgeng.dll, so how can those debuggers like windbg.exe/cdb.exe use the dbgeng.dll
DebugConnect
DebugConnectWide
DebugCreate
...
I have a web application that I am having issues with. The schema of the web application is that there are main files and sub files within sub folders. I compile the application and deploy to the webserver, which does not carry the .cs files over. When I use CodeBehind, custom user controls on the sub-files are not being found.
Error: ...
I have a windows service that is, intermittently, throwing an exception that sometimes kills its SQLConnection, and other times kills the service completely. It is running live on a customer's site.
I have planned to use Windbg + SOS on it to get a crash dump, so that I can debug this at my own leisure.
On my first attempt, however, th...
Is there a good way to run a script and see all the steps:
Which code is executed
Which file the code is in
What it returns
The error messages
This would be a good way to learn how an open source project is working.
Aren't there solutions like this for Ruby?
Eg.
require "httparty"
HTTParty.get "http://www.google.se"
Then it woul...
I'm one of those people who love the Edit and Continue in VS. Because of that I develop apps in 32-bit. But when I run a unit test in debug mode and I try to edit a line, I get the usual "Changes to 64-bit applications are not allowed." message. All my components are marked x86, nunit is installed as a 32-bit application. My system is 64...
I have an iOS 3.2 program running on the iPad that is document-centric. Sometimes, when closing a document, there is a memory spike in Instruments. I'm pretty sure I'm not leaking memory, since the allocations graph stays pretty steady between 5mb and 10mb, except when closing, where it spikes up by about 5mb or so (and the leaks tool is...
I've been developing a mobile app recently. The app is nearly finished with all features and it usually works fine when I test it.
However, sometimes when I navigate between forms, the app crashes: "Simulator.exe has stopped working..."
It doesn't occur on a specific form or place, but randomly, as far as I've observed. How do I track ...
I have a simulator written in C++ which reads a file and processes it line by line. This is a time consuming process. I mostly run into rum time errors where the program crashes after 15-20 mins. I start debugging and the program takes the same amount of time to hit the break point I set . I examine a few variables and step through the c...
If I've attached a number of key-value pairs to a DOM element using .data(), is there any way to iterate them so I can log them in the console? Alternately, is there a way to view this data with a development tool like FireBug? This would be really helpful when debugging a script.
...
I would like to know the pros and cons for deciding to deploy an application which was built in Debug (with debug symbol table) and opposed to Release mode where the symbols are stripped. There are other permutations like turn on optimisations for Debug and turning on debug symbols for Release.
The areas which I think may be of concern ...
scenario: asp.net WebForms + c# code behind + SQL server 2005 (via stored procedures invoked through a c# data access layer).
debug.writeline can create output that can be trapped by Mark Russinovich's DebugView utility:
http://technet.microsoft.com/en-us/sysinternals/bb896647.aspx
DebugView greatly speeds up the debugging process bec...
Hi, my problems deals with native C++ DLLs (Visual Studio 2005, if it matters) and how to write them in order to insure that:
when the DLL is compiled in release mode, it will be correctly loaded by an EXE compiled in release or debug mode (first priority)
when the DLL is compiled in debug mode, it will be correctly loaded by an EXE co...
I want to debug one api call of dll?
It is written in C language.
I do not know the calling process,so I need to write one process which can call api of above dll?
I am using VS 2005.
Can I get help for the same?
...
I'd really like to get deeper into my php scripts and use things like breakpoints, as I'm doing with JS with firebug.
I've recently had no end of "fun and games" with magento and ZF, and I'm certain that some more sophisticated debugging techniques would have saved a lot of time.... ;)
However, there doesn't appear to be much in the w...
In the Call Stack window of visual studio, it reports:
[Frames below may be incorrect and/or missing, no symbols loaded for IPCamera.ax]
What does it mean by Frames, and why missing symbols may cause it incorrect?AFAIK,symbols are just for debugging info,missing symbols will only make the source invisible .
...
Hi,
I want to debug a "big" C code, and use valgrind, in particular the tool memcheck. The output is very long, due to the size of the program, and I only want to focus on some function and relative subfunctions of the program. Is it possible in valgrind only to analyze certain function and subfunctions (up to some depth level)?
Thanks...
Anyone has experience with the Memory window of visual studio?
...
When debugging in Visual Studio, if symbols for a call stack are missing, for example:
00 > HelloWorld.exe!my_function(int y=42) Line 291
01 dynlib2.dll!10011435()
[Frames below may be incorrect and/or missing, no symbols loaded for dynlib2.dll]
02 dynlib2.dll!10011497()
03 HelloWorld.exe!wmain(int __formal=1, int __formal...
Say I have this C# method:
public bool GetVal()
{
return a1 == b1 || c1 == d1 || GetE1() == GetF1(); // Illustrating complicated logic here..
}
I don't want to modify the content of the variables / return values of methods in the statement above, but want to return false to the method that's calling GetVal().
Is it possible to us...