debugging

onclick help - reading the value of a specific class, part 2

I am working on integrating a javascript shopping cart, simplecart-js, into a Jquery LightBox, Yoxview. Yoxview has an option to add button links in the popup title pane for various options, downloading, shopping cart, etc. The relevant code for my shopping cart button is: var yoxviewCartButton = $("<a>", { title: "Add to cart", });...

Debugger on wrong line when debugging Classic Asp

I'm having trouble debugging any ASP Classic website on my workstation using any of the MS debugging environments available to me. I'm on Win XP SP3, using the builtin IIS 5.1. It started a few weeks ago, and happens across multiple projects. Something clearly changed in my environment, because it was working fine in the past, even in r...

Debug in the end or debug as you go?

Ok, iv'e got another philosophical programming question. When do you debug your code? Do you debug as you go before you add in additional features or do you debug your code at the end of some cycle? Do you debug only when it's stopping you from moving forward with something? Also how does this cycle into cleaning up and writing betters v...

What are the tools available for troubleshooting WPF and Silverlight Databinding issues?

In general, what are the best practices to debug a Silverlight or WPF application, especially when you get errors with Databinding? Are there free tools available? I am not getting any errors as such, but I am interested in figuring out the approaches that you take as Silverlight and WPF experts. Thanks! ...

How do you "debug" a regular expression with sed?

I'm trying to use a regexp using sed. I've tested my regex with kiki, a gnome application to test regexpd, and it works in kiki. date: 2010-10-29 14:46:33 -0200; author: 00000000000; state: Exp; lines: +5 -2; commitid: bvEcb00aPyqal6Uu; I want to replace author: 00000000000; with nothing. So, I created the regexp, that works when ...

how to find out whether a link is handled by a javascript or uses the href url

Hi, i'm trying to debug a link, but the opened url is a bit different from the one given in the href attribute. it seems like some javascript is used to handle the link after a click event. unfortunately the js file is very huge and unreadable, so i can't find the place, that changes or handles my link. is there any possibility to deb...

Can't debug ASP.NET in VS2005 won't stop at break point

I have an puzzling problem. I have a new ASP.NET web application in VS2005 that runs fairly well, but I am having a problem and would like to set a break point to see what is going on. I have compiled the project in Debug mode. I have debug=true set in the web.config. But it appears that the IDE is not attaching to the process at all...

Emulation mode in CUDA 3.2 with VS2008

Hey guys, I am trying to debug into my kernel code, using the device emulation mode. However, I set break points in my kernel and it doesn't break. MatrixMultiplication_Kernel<<<dimGrid, dimBlock>>>(Md, Nd, Pd, Width); Can anyone assist me with this? ...

Good newbie instructions for creating minimal complete bug examples?

So, those of us who've been answering questions and dealing with bug reports for a while are all deeply familiar with the concept of a "complete, minimal example". You start with a gnarly huge pile of code that's got a weird error, and you want to ask someone about it. But you don't want to send them the whole mess, so you start cuttin...

Set a breakpoint condition for self pointer in Mac OS X

I'm trying to figure out when [NSView setNeedsDisplay] is called for a particular object. I want to set a breakpoint on it that fires only when the self pointer refers to the object I care about. The method is called probably hundreds of times around the time it's called for my object, so something like a breakpoint condition is necessar...

Obtain a callstack in Clojure

When I run my Clojure programs and get an error during execution, I notice that the message printed by the REPL only contains the top level line number from the script I executed. Can I get it to dump a call stack (which references the various line numbers of Clojure code)? For example: user=> (load-file "test.clj") java.lang.IllegalA...