debugging

How do I see the value of a GUID in the Visual Studio 2008 debugger?

When you look at a GUID values item in the watch window you do not see the value of the item, when you expand the item you just see “Empty” this is very misleading! You have to add “ToString()” to the value to see something useful. So how do I get Visual Studio to add the “ToString()” it’s self? I am using VB.NET if it make a differ...

Debugging with xdebug, netbeans and a mounted remote server

Hi, I've using Netbeans to develop on a windows machine, the files I'm editing are on a remote LAMP server. The document root is mounted on my windows machine as a drive letter (Y:). So, netbeans things I'm developing locally, whereas I'm actually developing remotely on a local mount. My problem starts when I want to use xdebug and net...

Debug problem with asp.net VS2005

hi, I'm having troubles with an asp.net 2.0 application that I took over from other developers (meaning I don't really know much of the code). It is throwing an unhandled exception, but I cannot get any source info where exactly the exception occurs, and debug stepping through the source suddenly ends with the only option of showing dis...

How to run all tests when I click F5 in Visual Studio 2008 Professional

I have a solution in Visual Studio 2008 professional. There are three projects, a Windows Form project and two MSTEST projects. The Windows Form project is set as the startup. When I click F5 to run the Windows Form project in debug mode, I would like to get all the tests to run from both MSTEST projects. I tried starting all three pro...

C# if/then directives for debug vs release

In Solution properties, I have Configuration set to "release" for my one and only project. At the beginning of the main routine, I have this code, and it is showing "Mode=Debug". I also have these two lines at the very top: #define DEBUG #define RELEASE Am I testing the right variable? #if (DEBUG) Console.WriteLine(...

_CrtMem* and the debug heap

When I use the following code, it detects a memory leak. How can I make it not? _CrtMemState startState; _CrtMemState endState; _CrtMemState temp; _CrtMemCheckpoint(&startState); const char* foo = "I'm not leaking memory! Stop saying I am!"; _CrtMemCheckpoint(&endState); _CrtMemDifference(&temp, &startState, &endState); // Returns ...

WPF, debugging databinding

Hi there I'm trying to understand the following part of an error message: Additional information: 'Provide value on 'System.Windows.DynamicResourceExtension' threw an exception.' Line number '118' and line position '56'. , what lines are the error referring to? No source files are mentioned.. ...

Visual Studio 2008 is not stopping at all my break points and often “runs away” when I step over a statement, why?

I find often that breakpoint on line of code I know are executing do not break correctly. It also often “runs away” when I do a “step over”, or “step into” etc. Details. Microsoft Visual Studio 2008 Version 9.0.30729.1 SP Microsoft .NET Framework Version 3.5 SP1 The code is a mixture of VB.NET and C# with most of the code in VB.NET. ...

how to determine which JavaScript events are being triggered

As the title says, how can I find what JavaScript events are being triggered as I interact with a webpage? ...

How to prepare KML file for Android Emulator Control ?

I am trying to test my application with location information. You know the Emulator Control has an ability to load from KML file. (Eclipse -> DDMS -> Emulator Control -> Location Controls -> KML -> Load KML...) I've prepared KML file using Google earth application with its "Add path". Then saved it by .kml extension and load it on the Ec...

How to create good debugging problems for a contest?

I am involved in a contest, and in one event we have debugging questions. I have to design some really good debugging problems in C and C++. How can I create some good problems on debugging? What aspects should I consider while designing the problems? ...

How to debug with Visual C++ 6 on Windows 7 x64?

Surely the answer will be "you can't" or "use XP mode", but I'd like to know if it it possible. The issue I have is that whenever I debug some application and hit a breakpoint, when I stop the debugger the debuggee remains stuck. It can't be killed, I can't attach another debugger (it says it is already being debugged). It won't go away...

How to Debug on the Samsung Galaxy I7500 Android Phone

How to Debug on the Samsung Galaxy I7500 Android Phone modify c:\android-sdk-windows-1.5_r3\usb_driver\x86\android_usb.inf under the [Google.NTx86] entry add ; SAMSUNG GALAXY %USB\VID_04E8&PID_6640.DeviceDescRelease%=androidusb.Dev, USB\VID_04E8&PID_6640 %USB\VID_04E8&PID_6640&MI_04.DeviceDescRelease%=androidusb.Dev, USB\VID_04E8&PID_6...

gdb - "thread apply all bt full" gives blank

I was trying to debug a multi-threaded process on a Linux server running Slackware 12 using gdb 6.6 Once I attach and issue the command "thread apply all bt full" it comes back with nothing ( back on to the gdb prompt ). Any idea why this happens? ...

No program counter in NetBeans when debugging

I just started using NetBeans 6.8 with XDebug for some remote debugging I need to do. I think I have everything configured correctly, but I don't see a program counter while I'm debugging, so I have no visual indicator of what line is about to be executed. Normally, it should show a green arrow in the gutter, and a background color on ...

jQuery worked yesterday. Not anymore...

Yeah, so I have NO CLUE what happened. I've been writing an AJAX comment script and I got it working, except it doesn't work anymore. I restored it from a backup just in case I chaged anything, but no luck. It goes to the "action" of the form instead of the jQuery, even though I have return false; This leads me to believe that one of the...

how to merge stripped symbols with binary?

I compiled the Qt Framework with debugging enabled, but the script stripped the debugging symbols from the libraries and saved them as *.debug files -- just like here. Sadly I need these symbols inside the .so files, so I can continue working with them. There seems no way to teach my debugger to load external (non-PDB) symbols. So anothe...

cedecl calling convention -- compiled asm instructions cause crash

Treat this more as pseudocode than anything. If there's some macro or other element that you feel should be included, let me know. I'm rather new to assembly. I programmed on a pic processor back in college, but nothing since. The problem here (segmentation fault) is the first instruction after "Compile function entrance, setup stack f...

Non-line dependent conditional breakpoints

Is it possible to set a breakpoint so that the program stops executing after an instruction has made certain condition true? A class has a variable named currency and I want to make a breakpoint to make the program stop at any line after currency == 20. I do not know the line number where currency is changed, so this would be like putti...

How to redirect javax.mail.Session setDebugOut to log4j logger?

How to redirect javax.mail.Session setDebugOut to log4j logger? Is it possible to redirect only mailSession debug out to logger? I mean, there are solutions like link text which reassigns all standard output to go to log4j --System.setOut(new Log4jStream()) Best Regards ...