debugging

Debugging multiple related dll's each in separate projects.

I have to debug multiple dlls each within their own project. There is a parent executable that loads a dll, which serves as a container for the other dlls. My question is how can I debug the whole 'component' ie: all the dll's involved, using Visual Studio 2005 for C++. ...

Why Won't Visual Studio Stop When Exceptions Occur?

For some reason Visual Studio 2008 doesn't always stop when an exception occurs to report the exception when I am Debugging. Sometimes it just jumps up an arbitrary number of frames in the stack and continues on with program execution. This results in bugs that are very difficult to resolve. Frankly, its rather annoying. I want to kno...

Avoid or embrace C# constructs which break edit-and-continue?

I develop and maintain a large (500k+ LOC) WinForms app written in C# 2.0. It's multi-user and is currently deployed on about 15 machines. The development of the system is ongoing (can be thought of as a perpetual beta), and there's very little done to shield users from potential new bugs that might be introduced in a weekly build. For ...

Firefox Jetpack Development Debugging

So, I'm working with some JS in Firefox and also working with the jetpack sdk. I am working in a JS editor, and then I run the sdk through the command line. However, when there is a bug there is no way to debug this because the JS is being run/loaded before the page and the DOM so firebug is to no avail. Can anyone recommend a better t...

Debug not working for Win CE 5.0 Device

I'm working with a handheld device running Windows CE 5.0. The program runs, however I'm not able to debug and hopefully its something simple and stupid burried in project settings somewhere. So, as to not mess up the main app, I decide I'll start a brand new SmartDevice application. So MS builds its default settings, environment, pat...

MonoTouch Debugging not working correctly.

I was working on a different portion of my app and finally got back to working on a TableView that I had "finished" before. When you click on a Row in the TableView it should load a new View. I was pretty sure this was working, however now when I click on a Row, the app just freezes with the Row highlighted. I have waited 10 minutes o...

Help debug a stackoverflow - next steps with repeating stack?

Folks, I've got a stack overflow in my .net 4.0 app. using WinDbg I've found the following chunk of stack-info repeated 110 times (with different memory addresses of course), which leads me to believe that this is the case of the overflow. The issue is that none of this seems like my code! Any suggestions on how to proceed with debug...

Insert line number in Debug.Assert statement

We use Debug.Assert to signal problems in our code to the developer. I would like to add the line number where the error occurs but not hard code it as this could change and we would forget to update the string. It would be handy to add the line number of the error. Any ideas? ...

Visual Studio Breakpoint Macro to modify a value?

I'm debugging an application (C++), and I've found a point in the code where I want to change a value (via the debugger). So right now, I've got a breakpoint set, whereupon I do: Debugger reaches breakpoint I modify the variable I want to change I hit F5 to continue running lather, rinse, repeat It's hitting this breakpoint a lot, s...

Debug COM port read/write using software/virtual COM port and console/terminal on the other end

I have a Delphi application that reads/writes to a COM port connected to a large hardware device, so I don't usually have the hardware available during development. That said, the communication protocol is fairly simple, so I can generally do the development and have someone onsite test it, and it usually works. Occasionally I run into...

Visual Studio: how to debug a library with an external executable?

I am developing a class library. The library is to be used by another program, an .exe with no source code. The library file location is passed as a parameter to this exe, for example by running: prog.exe lib.dll I would like to debug the library using this .exe (using debug tools such as breakpoints, etc.) How do I use Visual C# to do ...

How do I know what went wrong with an XHR request?

I am using mootools to send an XHR request. To a url that in other places I call using XHR is working fine. The server side does what it is suppose to do. But, I do not see any response headers. The onFailure event is being fired and the XHR object is being returned to the event handler. How do I debug this and see any kind of error mess...

Looking for tips on debugging Oracle row-level security functions

I'm looking for tips in debugging some of my row-level security predicates in an Oracle database. These predicates use a few concepts to determine whether the current user can see a record: current user's Oracle username current user's assigned Oracle roles current user's affiliation with a record in one or more tables I'm having tr...

how to use gdb to explore the stack/heap?

Hello. Could anyone please give me a quick overview/point me to documentation of a way to inspect the stack (and heap?) of a C program? I thought this should be done with GDB, but if there are other more straighforward alternatives, then that should be fine as well. Thanks. ...

How to debug win 32 process to find memory access violation?

I have Agent installed on remote machine, this agent behave like process works in background, the process open socket connection with port number. The problem: this agent was exploited by security company, I am as QA want to find the problem for fix it. I have Perl script that able to connect to the agent by socket connection and send so...

Debug WCF service hosted in local IIS not working

I have one solution WCFSampleSolution and it has all my projects - Web Service, Client and Website. The structure is something like: WCFSampleSolution C:\WCFSample\Website WCFService WCFWebClient I created WCFService project for my services. It contains IService1.cs and Service1.cs. Then I hosted the service in IIS. I did this by c...

Debug symbols not found for static lib in Visual C++ 2008

Hello, I'm trying to debug a static library using MFC in Visual Studio 2008. When running the project in debug mode the breakpoints turn into circles and hovering over them produces the message "The breakpoint will not currently be hit. No symbols have been loaded for this document" The project configuration is set to "Debug", and...

Fix debug visualization of generic collection using DebuggerTypeProxy

For some reason when the DebuggerDisplay attribute is used the debugger does not display the collection items. If I remove the attribute it works. I have also tried various versions of DebuggerDisplay string to see if it was my format. Anyone know what the problem could be? <DebuggerTypeProxy(GetType(SS_CollectionDebugView(Of IKeyIt...

Exclude certain projects from stepping through during debug in VS2010?

Hi, I am working on a couple of projects (A and B) in a large VS2010 solution (all in C#). There are many cases where methods from project A call through to one or more of the projects in the solution for which I am not responsible, which in turn call through to project B. When stepping through with the debugger from project A, I am f...

Need to get List of C++ Kernel Types?

Hello, Respectfully!! I need complete list of kernel types such as "CRITICAL_SECTION", "_LARGE_INTEGER" or "_SECURITY_ATTRIBUTES". Basically I am extracting all the data members of class given class name as type from some debugging SDK (right now using DIA SDK or DbgHelp) . Now If a type(say class or struct) contains some kernel level...