debugger

can a Javascript debugger do "when this variable is read", break point there?

can a Javascript debugger do "when this variable is read", break point there, like a C / C++ debugger? I am calling some library function, and deep down, it is finally do something with that argument, and instead of manually finding where it is actually using that value, can i say, stop the code when the variable is accessed? ...

How to attach to a already running process noninvasively

I have a process suspended at breakpoint under visual studio debugger. I can attach as many as cdb (Microsoft's console debugger) in non-invasive mode as cdb -p pid -pvr How to achieve the same using my own program which uses Debug Engine API. IDebugClient* debugClient = 0; (DebugCreate( __uuidof(IDebugClient), (void **)&debugCli...

on a javascript error, how to identify method or js file with the problem?

Hi, When a javascript error occures in IE (or in other browsers) you get a popup saying that javascript error has occurred - usually this comes with a line number and some hint. Sometimes it comes with line 0 and with no way of knowing what the problem is. Javscript can come from HTML itself, from a js file or from JSP (and more). Micr...

Debugging in failing method when invoked from other thread

I have code like the one in this question, basically a UI-thread that gets updated from another thread and uses InvokeRequired() and Invoke(..). Now, if the method fails in the work part, the debugger stops on the Invoke(..) line -can I make it show me the line where it actually failed like it usually does? ...

View array in Visual Studio debugger?

Is it possible to view an array in the Visual Studio debugger? QuickWatch only shows the first element of the array. ...

Help needed for DIA SDK & DbgEng

Hi everyone, Are DIA SDK & DbgEng (Not the DbgHelp) both COM based API and based on DbgHelp? If so, how can I call DbgEng API from a C# application. I can import the DIA library to C# project using idl file (tlibimp for generated tlib file), but DbgEng doesn't have any IDL file. I have seen an incomplete wrapper for DbgEng which man...

[Delphi 2009] Debugger displays useless info on user breaks

Hi all, It's a silly point, but I haven't been able to find the answer by myself : In delphi 2009, when I hit the "pause" button ("Suspend program execution") while debugging, the IDE pops the CPU window, and shows me the execution point and stack of the thread which actually stopped the execution, instead of the main thread - which is...

start process and attach debugger

I know I can start a process in code with Process.Start(). Is it also possible to attach the debugger to that process? Not from code per se , but just a way to do it? ...

Examining function return value in GDB

If I break in line 3: 1 int foo() 2 { 3 return func(); 4 } is there a way to examine the return value of func()? Thanks. ...

What debugger can be used with D 2.0 on windows and how do I use it?

I have been playing around with D 2.0 a bit today mostly because of the "The Case for D" in DDJ. I have downloaded D 2.0 for windows but have not figured out how to step through a running program in the debugger. I tried to get the shipped copy of windbg.exe to work but it is crashing on me all the time and does not seem to see the sou...

Is each source line address in a detailed MAP file a valid address to insert a Int3h?

I am trying to create a code coverage tool using Delphi 2007. My general approach is to use the Win32 Debug API to insert breakpoints for each source line and then remove the breakpoints as I pass them - thus I would be able to track each executed source line. Outline of my approach: parse the detailed MAP file (as generated by Delph...

can you use multiple threads to ptrace an application?

I am writing a GUI oriented debugger which targets Linux primarily, but I plan ports to other OSes in the future. Because the GUI must stay interactive at all times, I have a few threads handling different things. Primarily I have a "debug event" thread which simply loops waiting for waitpid to return and delivers the received events to...

Receiving CrossThreadMessagingException while Debugging WinForms Application

I am using Wndows XP SP3 x86 + VSTS 2008 to write a simple Windows Forms application using C#. There is a button called button1 and here is the event handler for its click event, when executing the if statement, there is Microsoft.VisualStudio.Debugger.Runtime.CrossThreadMessagingException. Does anyone have any good ideas what is wrong? ...

Free memory debugger for Windows?

I am looking for a free memory debugger for Windows, suited for debugging C++ applications built with VC, with similiar functionality to Insure++ or Purify. Any recomendations? GUI is a plus Integration with VS is a bigger plus ...

visual studio - invalid std::string debugger output in Release mode

There's nothing fancy going on in this program, but I get garbage output. Here are the header files I'm including, in case that's relevant. #include <cstdlib> #include <iostream> #include <windows.h> #include <vector> #include <string> #include <sstream> And I'm using Visual Studio 2008 on Windows XP. Note that if I print the strin...

How do you remove a breakpoint from Safari 4's Javascript debugger?

How do you remove a breakpoint from Safari 4's Javascript debugger? ...

How to use VB6 debugger on Outlook property page OCX?

Using VB6, I have created an Outlook plugin, that has a property page. The property page is an OCX control. When I compile the project to an OCX file, and then run OUTLOOK, things work fine: I am able to see my OCX as a tab in the Outlook options. However, when I try to debug by running the OCX in VB6 I get an error. My debugging is st...

Debugger problem at C# Express - 2008

Hi All, I'm living a debugger problem at C# Express Edition - 2008. After modifying in code, I run the debugger. Unfortunately, the last modification are not be processed. After I exit C# and then run again it, when I load the code and run the debugger, the last modification are processed by the debugger. Where is the problem at ? Than...

Visual Studio : executing clean up code when debugging stops

We developed an application that uses Excel interop libraries (Microsoft.Office.Interop.Excel) to read some Excel files. When a problem occur in the application, the event Application.ThreadException is handled, so the resources are released (Excel is closed...). The problem is that when we use the VS debugger, if we stop the execution...

Windbg Thread ID After StackOverflow And Process Shut Down

Using ADPlus (in crash dump mode) to generate .dmp files. The final sequence of unhandled exceptions (that produce full memory dump files) is... 1st chance DLL unload: contains thread id's but doesn't contain the StackOverflowException (I wouldn't expect it to since at this point the exception hasn't been thrown yet). 1st chance Stacko...