breakpoints

Programmatically apply / deactivate breakpoints in visual studio

Hey, Regardless of other options that may achieve the same result (i.e. adding breakpoints by hand) Is is possible to programmatically add a breakpoint into the source code of a visual studio project? such as try { FunctionThatThrowsErrors(obj InscrutableParameters); } catch(Exception ex) { Log.LogTheError(ex); AddBreakPo...

How do you add conditional breaking based on another breakpoint being hit? Visual C++

Hi, I have a bunch of generic code that is used a lot, which i'd like to poke into in order to deal with a bug in a certain specific case. So I'd like to break on a set of breakpoints only if some other breakpoint has been hit. Is there a way to do this in Visual 2005? I'm using C++ code. Thanks! ...

phantom breakpoint driving me crazy!

I have no idea where it came from, it doesn't show up in my breakpoitns view, but every time I start my program, before it gets to my code it breaks at the beginning of FileInputStream.class It's just getting really annoying. I am using eclipse 3.4 and java 1.6. Thanks! Joshua ...

Visual Studio 2008 and 2008 SP1 Addin: using EnvDTE90 and EnvDTE90a

Does anyone know the equivalent for doing this in Visual Studio 2008(EnvDTE90) and Visual Studio 2008 SP1(EnvDTE90a)? //this is code for Visual Studio 2005, works great EnvDTE80.DTE2 dte2 = (EnvDTE80.DTE2)System.Runtime.InteropServices.Marshal. GetActiveObject("VisualStudio.DTE.8.0"); foreach (EnvDTE80.Breakpoint2 bp ...

Setting breakpoints in Java

How does setting breakpoints in Java work? Is it just based on the source file name and line number? Does the class or method name also figure in? If I have an old version of the source in my debugger and set a breakpoint, the cursor is off when I step through. How far off can it be? Can it go into the wrong method (or even the wrong c...

Why does F10 (step over) in Visual Studio not work?

I'm debugging a (web) project in Visual Studio 2008. I'm hitting a breakpoint. F10 continues to the next line, as expected, but the next F10 just stops debugging and the code continues without any more debugging (like pressing F5). Why is this happening? I have tried 'clean solution'. Other breakpoints sometimes(!) skipped, even in the...

After setting a breakpoint in Qt, gdb says: "Error accessing memory address"

I wrote a very simple Qt program here: int main(int argc, char* argv[]) { QApplication app(argc, argv); QTableView table(&frame); table.resize(100, 100); table.show(); return app.exec(); } And when I try to set a breakpoint where the table gets clicked, I get this error from gdb: (gdb) symbol-file /usr/lib/libQt...

What is the meaning of the color of the 'breakpoint' mark in Xcode

When I set a breakpoint (double click the border of the editor at a particular line), there are 3 colors: 1. blue 2. faded blue 3. yellow with blue border can you please tell me what are the meaning of each color? Thank you. ...

Jump into a Python Interactive Session mid-program?

Hey I was wondering... I am using the pydev with eclipse and I'm really enjoying the powerful debugging features, but I was wondering: Is it possible to set a breakpoint in eclipse and jump into the interactive python interpreter during execution? I think that would be pretty handy ;) edit: I want to emphasize that my goal is not to j...

How can I insert a time string into a GDB log?

Hey Guys, I recently discovered that you can set breakpoints in Xcode that will print to the console and auto-continue -- meaning you can insert log statements without having to write NSLog() calls and recompile (on-the-fly logging, woot). Only problem is that it seems to be a little limited in what you can display when doing a log. It...

Visual Studio: Cycling through breakpoints

Is there a shortcut to cycle through my breakpoints? I often lose track of the breakpoints when debugging a project. When I finish working with one bug, I have to reset my breakpoints for a new bug that I am about to solve. It would be handy to have a keystroke that would allow me to cycle through the breakpoints and disable ones I don't...

Xcode: Breakpoints disabling themselves

I set a breakpoint but when I run my program it looks like it disables itself. Any ideas what's going on? The breakpoint arrow is dark blue before I run the program, and upon execution changes to light blue. ...

Eclipse - Unable to install breakpoint due to missing line number attributes

I am getting this strange error in Eclipse while trying to set a breakpoint. Unable to insert breakpoint Absent Line Number Information Ticked the checkbox from Compiler options but no luck. Thanks ...

realloc crashing in previously stable function

Apparently this function in SDL_Mixer keeps dying, and I'm not sure why. Does anyone have any ideas? According to visual studio, the crash is caused by Windows triggering a breakpoint somewhere in the realloc() line. The code in question is from the SVN version of SDL_Mixer specifically, if that makes a difference. static void add_musi...

Breakpoint on api exposed from COM interface.

Lets say thers is one interface interface Ifoo { HRESULT foo(); }; which is part of a binary dll. I dont have source code for this. Can I put a breakpoint on foo() API exposed from the interface Ifoo of this binary dll using Windbg? I know we can put breakpoints on binary dll's using windbg but using COM I am not sure. ...

iPhone Device Debugging

Is it possible to actually use the Xcode debugger when running an iPhone app on the device rather than the simulator? i.e., can I have the device stop at breakpoints that I set in my code and step through the code as it runs on the device? EDIT: I should mention that I am a registered developer with Apple and have a valid certificate. I...

C++ - Why am i getting SIGTRAP during the execution ?

Hi, While running, my program often stops because of a SIGTRAP. I know, that a SIGTRAP is happening when the compiler finds a breakpoint in the program. But i don't have any breakpoint in my code. (To be sure about it, before the execution, i cleared all the breakpoints..). I'm using Code::Blocks.. Thanks ! ...

How do I break a loop at a certain point when debugging?

Env: Visual Studio 2008 - C# I have a for which runs for 1000+ times over a string array. I want to have my app break when one of the strings matches a certain term so I can walk through at that point in my code. Now I know I can add a piece of code that looks for this and a break point when it hits, but is there not a way to do this ...

Debugging with NUnit

I'm using NUnit for my unit tests and I have my unit test class library project setup so that Visual Studio launches the NUnit gui when I press F5. This lets me set breakpoints in my tests and look at the contents of variables, etc. What isn't happening though is that if one of my tests crashes (throws an exception) Visual Studio does ...

Debugger does not hit breakpoint (C#)

Hello. I found something quite odd(I think!). If I try to put a breakpoint in the yes() method, it will never pause the program when it executes the function. If I try to do the same to any other line of code, it will work just as expected. Is it a bug, or is there something that's escaping me? The filter will return the 2 objects, ever...