breakpoints

PHP Debugging with Breakpoints - case studies, examples..?

I'd really like to get deeper into my php scripts and use things like breakpoints, as I'm doing with JS with firebug. I've recently had no end of "fun and games" with magento and ZF, and I'm certain that some more sophisticated debugging techniques would have saved a lot of time.... ;) However, there doesn't appear to be much in the w...

Eclipse remote debugging, breakpoints - .java VS .class confusion

I'm remotely debugging a Java application in Eclipse. (Bunch of Alfresco projects with attached sources in ZIP-files.) Breakpoints do work, but: 1) Whenever I set a breakpoint in *.class file Eclipse opens *.java file when the breakpoint is reached. 2) When I set the breakpoint from within the *.java file a new breakpoint is created (...

Symbolic breakpoints in XCode suddenly not working.

Update: if you've added symbolic breakpoints and they're not working, uh, "wait awhile". After posting this and moving on and doing something else in the project, I then had an objc_exception_throw caught at some point. I've been adding -[NSException raise] and objc_exception_throw as symbolic breakpoints to all my projects and it's wor...

How to set this kind of breakpoint in ollydbg?

I want to break on where Executable Module X is called, but I've no idea which function is actually called. Is it possible to set this kind of matching-all breakpoint? ...

What's the principle of ollydbg's memory breakpoint ?

It seems only 1 memory breakpoint can be set, and it seems doesn't matter at which line the memory breakpoint is set,very weird,anyone can explain? ...

Is there a way to set a dynamic breakpoint in C#?

I have a class in C# that is acting weird. Whenever I perform some action, a property that happens to be a list loses a member. I have no idea why it's doing this. So what I'd like to do is set up a Visual Studio breakpoint that will pause the program the moment this value changes. A conditional breakpoint would not work in this scen...

Debug symbols not found for static lib in Visual C++ 2008

Hello, I'm trying to debug a static library using MFC in Visual Studio 2008. When running the project in debug mode the breakpoints turn into circles and hovering over them produces the message "The breakpoint will not currently be hit. No symbols have been loaded for this document" The project configuration is set to "Debug", and...

VS IDE Conditional Break Points

I'm using VS 2k8 SP1 (on Win2k8 x64 server), and I notice that a breakpoint with a condition set can produce quite flaky behavior, depending on how deep in the call stack the conditioned-breakpoint is found. So if I place it on a routine deep in my code, the program execution breaks at the right time (I can tell because of console outpu...

Deleting breakpoints in Xcode

There are some breakpoints in my project that for some reason can not be turned off or deleted. How can I delete these? I heard that they can be deleted by deleting a file with the extension .dsk, but I can't find that file. Where is it? ...

How do breakpoints work in C++ code?

How do breakpoints work in C++ code? Are they special instructions inserted in between some assembler instructions when the code is compiled? Or is there something else in place? Also, how are stepping-through-the-code implemented? The same way as breakpoints...? ...

Eclipse + Pydev not breaking on external library source breakpoints

I've got a project (A) which references code in a different project (B). I've linked the two by adding B into the External Libraries list in A. So PyDev PYTHONPATH now has Source Folders as project A's source, and External Libraries contains B's source path. The problem I'm having is that breakpoints set in B are ignored, and the code d...

Shouldn't Xcode/gdb load the ~/.gdbinit file on launch?

I have a ~/.gdbinit file which is loosely based on http://stackoverflow.com/questions/1237830/how-do-i-set-these-break-points-in-gdbinit. Allegedly, gdb is supposed to source ~/.gdbinit when it launches. However, it's not loading mine - I have to stop at an existing breakpoint and type in 'source ~/.gdbinit', and then it loads it. Is ...

Debugging all events in Visual Studio 2010 without setting break points

I am trying to debug a windows form application which has a large number of events: button presses, timers, etc.. Is there a way to catch every line of code being executed by the application without setting a break point? edit: The program was not written by me, so I am unfamiliar with the code. I wish to step through the entire progr...

Why is my debug executable in Visual Studio (9) starting up so slowly?

I am experiencing a very weird issue when using Visual Studio (9) for debugging my applications. Whenever I hit F5 to start the debugging, the application takes a long time until it even gets to the first line of my main function... I started up Process Explorer and during this time you can see how slowly it finds and loads the required...

How to remove breakpoint from eclipse?

I am facing strange problem with eclipse [ Ganymade ]. Once i added some breakpoints in my code and now even after i delete all those breakpoints, it appears again when i start the eclipse. So, regularly first thing what i have to do after starting the eclipse is manually delete all breakpoints to start working. Probably eclipse stores t...

Extendscript Toolkit not stopping at breakpoints, why?

I am scripting Illustrator CS5 with the Extendscript Toolkit. I set several breakpoints in my code, they show up as red dots next to the line number. But when I run the script, it executes all the way to the end without stopping and the breakpoint dots turn dark. What am I missing here? Thanks! ...

Is there a way to link or export Visual Studio javascript breakpoints to Google Chrome?

In VS i can set breakpoints on javascript code, which are correctly interpreted while debugging with IE. Is there a way to do this with Google Chrome? ...

While loop break condition

Hi, I want to do some calculations with polygons. So I need the user to input some x and y coordinates. This is performed by the following code: private static boolean isX = true; private static Scanner scanner = new Scanner(System.in); private static double readDouble() { double value = 0; System.out.print("Koordinate " + (is...

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...

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...