breakpoints

Javascript debugging: stopping/breaking at every javascript invocation

I am dealing with a complex legacy javascript code base, and it's difficult to figure out where to put breakpoint (I have to find the files, put a breakpoint in firebug etc). Is there a way so that Firebug breaks on the first javascript execution that it encounters every time? In other words, every time I click on something on the pag...

Netbeans: How do I break on a NullPointerException?

Hi When debugging a java program in netbeans, I want the debugger to stop on the line that causes a NullPointerException so I can examine the variables there. I believe I have to use a condition on the breakpoint set at that line, but what is the syntax of the condition? thanks for the help ...

IDEA: Conditional breakpoint not to be hit in specified call context

Is there a way to put a conditional breakpoint which won't be hit when the method the breakpoint is in is called from other specified method? (I'm using IDEA 9.0.1) ...

jQuery code doesn't work when normally run. But i does with breakpoints activated.

Hi, I have the following code in my application: $(".deleteproduct").click(function() { id = this.id; alert("id: " + id); }); If i run my site nothing happens when I click on an element with the class deleteproduct. But when I place breakpoints before line 1,2 and 3 it works like a charm. The elements with class deleteproduc...

Can't set breakpoints on an auto-property setter ? Why?

Apparently VS 2008 does not allow setting a breakpoint just on the setter of an auto-property. I.e. if I define an auto-property like this: public int CurrentFramesize { get; protected set; } and then try to set a breakpoint on the setter line, the whole auto-property turns breakpoint-red. This works j...

data breakpoints in avr studio

I want to set data breakpoint for TCNT1 register of ATMega16 in AVR Studio 4.17 Build 666. I add breakpoint by specifing in the Location field of "Add data breakpoint" window the value IO@0x2C. But breakpoint seems not work. Can some one help me how to setup a data breakpoint for an IO reginster? ...

C# program freezes without breakpoints

Hi, I'm implementing a program which gets text from various sites and checks which ones are most relevant to a query. The problem is that when I have breakpoints in my code it works perfectly well but without it, the program just freezes. Is this a memory issue? What can I do to solve this please? THanks ...

Is there any way to set or code breakpoints conditionally?

I've been wondering this for a while - is there a way to code/program breakpoints...? Conditionally? For example, can I specify something like - "when this variable becomes this value, break and open the debugger"? (Would be quite useful, especially in long loops when you want to debug loop execution of a late loop value.) I suppose thi...

JUnit won't stop at breakpoints in Eclipse (using JDK 1.6.0.20)

Hi, my breakpoints in Eclipse won't stop the execution of a JUnit test. It doesn't matter where I set the breakpoint in the JUnit method, it simply won't stop the code from flowing. Placing it in a class called in the JUnit test won't work either. I am using the JDK in the version of 1.6.0.20, so I guess I'm not affected by the bug in ...

Scala Eclipse IDE suddenly ignoring breakpoints

I've been using Scala 2.8RC1 and Scala Eclipse plugin for 2.8 RC1 happily for a few days. However, last night after adding a couple jar files to my environment (apache http client jars) the debugger just stopped stopping at breakpoints in scala code. Java code stops fine at breakpoints. I tried creating a new mimimal scala app breakp...

GDB not hitting breakpoints, probably because of function pointers. How to set breakpoints in this case?

Hello, I am trying to hit a breakpoint that appears early in the code, but gdb (ddd) misses it each time. At first I thought it was because of templates, but gdb seems to cope with that. I'm guessing the problem is that the choice of which function to execute (here, doit), is only known at execution time ("function pointers"), but judge ...

Dropdown is staying on the screen when I hit breakpoints in JavaScript files. Why?

I'm using Visual Studio 2008 Professional Edition SP1 & IE8. When I hit a breakpoint in a JavaScript file that's triggered when an item in a dropdown is selected the dev environment takes focus, but the dropdown list is still visible, hovering over the code. This makes it very unreadable! Does anyone have any idea what's causing this? Or...

breakpoint inside QComboBox subclass not working

I have subclassed QComboBox to customize it for special needs. The subclass is used to promote QComboBoxes in a ui file from QtDesigner. Everything works except that when I put a break point in a slot, the program does not stop at the breakpoint. I do however know that it is being called from the result it generates. I checked other slot...

how to set a 'counter' for a GDB breakpoint

I have a function that is called some large number of times, and eventually segfaults. However, I don't want to set a breakpoint at this function and stop after every time it's called, because I will be here for years. I've heard that I can set a counter in GDB for a breakpoint, and each time the breakpoint is hit, the counter is decreme...

.NET - Is it possible to change the value of a variable during execution time?

Hello, I want to know if there is any way I can change the value of a variable during execution time, using Visual Studio 2008? I know I can do this on Eclipse (put a breakpoint, add a watcher and edit whatever variable value I want) but I didn't find this feature on VS yet? Any idea? Thanks ...

How to set a breakpoint in a Nunit test and step through with Visual WebDeveloper 2008?

I have written a NUnit test in Visual Web Developer 2008 Express. But when I run the test, it doesn't pause at the breakpoint I had set. It just keeps on running but at the breakpoint, I need a step-by-step view on the test. Could anyone please tell me how I can use breakpoints with NUnit? Thanks in advance! ...

Why won't my breakpoints work in QT-Creator

QT creator can build and run my projects perfectly, but it will skip straight over any breakpoints I set. I can't find any options to fix this, and I'd appreciate some help. EDIT: The SDK is built in debug mode, and the project build configuration is set to debug. ...

Setting breakpoint in c# code with ADPlus

Hello, I am wondering if it is possible to set a breakpoint in C# code using ADPlus. I find several examples of config files but they always works with native code. Like this one: <ADPlus> <Breakpoints> <NewBP> <!-- Set the breakpoint on ExitProcess. --> <Address>kernel32!ExitProcess</Address> <Type>BP</Ty...

Can I debugger.break() on all changes to a DOM element?

I would really love to be able to see the code that is affecting a specific DOM element. But I also would really love not to have to look through all my javascript searching for references/selectors that might be causing the issue. Does anyone have a technique for causing a browser debugger to break on any changes to a specific DOM ele...

Can I set a breakpoint in Visual Studio (c++) to break on a thread context switch?

We want to only break in a certain thread. Any idea how to do that? I can't seem to find a way to break on that condition. I should have been more specific in the text. As the title suggests, I would like to break on the context switch into the thread. ...