debugging

Debugging "Multiple-step OLE DB operation generated errors."

This is kinda a general question, looking for as much info as possible. I have code which generates this error (the define is DB_E_ERRORSOCCURRED), and I'm looking for the best methods to debug it (eg: figure out what the particular errors were). I'm aware that there are some other SO questions related this this error (eg: here, here, he...

View all open events on html node - Javascript

I still consider myself a novice with javascript...so be gentle :) Is there a way to view all open events listeners on a page and perhaps to see any inifinte loops that may be running? What is happening, is a page I'm trying to debug works fine. Nodes get added to the page dynamically via a drag and drop method. All works well, but a...

VS2010 - Loading symbols to debug at design time (Breakpoint will not be hit)

Issue: Breakpoint will not be hit because no symbols have been loaded Thanks to helpful fellow users I found out how to debug controls at design time: I have to start a 2nd instance of VS2010. Unfortunately, when the 2nd instance of VS2010 starts, it will load all kind of symbols, but exactly not the ones from my project. In the module...

View the actual $string processed by file_get_contents($string) in php

I'm forced to use an older version of php on a server, and it seems to have a bug in the function file_get_contents(); I believe it's a bug because the issue doesn't happen on the current version of php. $string = 'intraneturl/?really_long_example_query_parameters'; When I pass the $string into file_get_contents($string); the part wit...

How do I debug a published XBAP file in VS2010?

I need to debug a full-trust application either by specifying a URL or, ideally, from within the web app I am intending to deploy it to. I've tried the following: Running "PresentationHost.exe -embedding" from the command-line, attaching through Visual Studio. The IDE shows that my breakpoints are valid until I actually attempt to lo...

c++ xcode debugging locals in constructors

Hi! I'm developing a c++ application with Xcode 3.1.4 while debugging, if i step into a constructor, i see only the membervariables, but no locals used in the constructor. does anyone know that problem and how to solve it? ...

gdb: Meaning of tstart error "You can't do that when your target is `exec'"

I would like to record the value of a local variable, t, each time that the program reaches a certain line. Accordingly, I tried: (gdb) trace stoer_wagner_min_cut.hpp :197 Tracepoint 1 at 0x4123a0: file ./boost/graph/stoer_wagner_min_cut.hpp, line 197. (gdb) actions Enter actions for tracepoint 1, one per line. End with a line saying j...

How can you tell in FireBug what JavaScript is being sent back from the server after an Ajax request?

In my HTML I'm sending a dollar amount back to the server to have its currency changed in the app. How can I tell in FireBug what JavaScript is being sent back from the server after this Ajax request? ...

windbg break on file open

I have a .net application which I don't have source too. I'm interested in determining what files this application is accessing. I thought that a debugger would be a good way to do this. I work only in the linux world and know nothing about windows debuggers. I feel like there should be a way to do this with windbg, I know how I woul...

Making sense of jquery - constructor error?

I'm pretty new to javascript, and has built a script that is working in webkit but not in firefox. When i check for errors in firebug, I get this: google.maps.Geocoder is not a constructor $('.to, .from').geo_autocomplete(new google.maps.Geocoder, { what does it mean? ...

Where does Visual Studio look for debug symbols at all?

I know that debug symbols can be stored both in a pdb file and in the compiled binary file, which of them does VS search for when we are debugging ? ...

Ruby on rails: printing the variable name for debugging purposes in the console.

Lets say I have i variable var witch is a pointer to another variable named user_id. How do I puts var such that I can see in the console user_id = (whatever the value is) Reason why I want to do this, is because I want to write a method called print_debug_block, where you give it an array of variables, and it prints in the following f...

Debug a Webworker

What's the best way to debug a webworker? My worker appears to be failing somewhere, but I don't appear to be able to log things to the console to figure out what's going on. Is there a way using firebug, or webkit's inspector I can run javascript in the webworker context? Is there a better way of doing this? ...

ObjC memory debugging help

Part of my app downloads images from the Internet and stores them in a mutable array. This is so that they do not have to be downloaded every time the user wants to view them. When I exit the view that deals with these images, the mutable array gets released. If there is only one image stored in the array, everything runs smoothly. Howev...

Methods for avoiding common typo bugs

So I just spent the last few hours pouring over code trying to figure out the source of a bug only to find that my error was none other than the obviously wrong but compiler accepted: if (a = b) where it should have been if (a == b) What do you guys do to safeguard against these frustrating errors? What other common "obviously wro...

Help debugging WCF

I am new to WCF programming and am finding the learning process rather frustrating. As far as I can tell, WCF (and WPF, for that matter) will hide errors from you by default. So far I have experienced the following problems and had essentially zero indication from Visual Studio or the runtime that there was anything wrong (other than m...

C# app keeps crashing at specific point, need help understanding problem signature

I have a C# Express 2010 application that makes numerous connections to a hosted php script. Once it gets to a point of around 7500 successful communications, the program stops working and offers this problem signature: Problem Event Name: APPCRASH Application Name: zz.exe Application Version: 1.0.0.0 Application Timestamp: 4c8d6459 F...

How do you handle debugging when using Prototype.js

In a lot of cases when my prototype.js javascript code hits an error, I don't get any error notification, line number, etc. I usually end up tracing through my code with alert statement until I find where it dies. Is there a better way to track down these errors? ...

Can't use Mono Soft Debugger Remote Debugging because 'debugger-agent: DWP handshake failed' error

Hello! I've embedded mono in my application. The application is console application that supports plug-ins. Plug-ins are .NET assemblies. All work great, but i want to debug them. To enable debugging in my C-code i have: mono_set_dirs (ASSEMBLIES_DIR_NAME, ASSEMBLIES_DIR_NAME); assembly_add_to_bundle(API_ASSEMBLY); soft_debug = getenv...

Best way to capture javascript errors in production

I've got a serious javascript problem that is hard to reproduce in any of our DEV/TEST/PRD environments. Nonetheless, it is being reported consistently by our customers. Sometimes we think it's browser specific -- sometimes we think it's action specific -- sometimes we think it's cookie related. It's a tough one and we're getting pulled...