breakpoints

Data Breakpoints by Variable Name

Is there a simple way to define a breakpoint, in Visual C++ 2005, that will pause the program whenever a certain value changes? I found Data Breakpoints, but those require a memory address, and provide no simple way to tie that to a variable. ...

Visual Studio 2008 viewing dialog after breakpoint hit

I am building a C++ MFC application that creates modal dialog boxes, one at a time, while hiding the parent dialog. I wish to view the newly created modal dialogs when a breakpoint is hit when debugging in Visual Studio. However, anytime a breakpoint is hit, the contents of the dialog box are no longer rendered. The box simply goes white...

Insert Tracepoint: how to set the default message?

In MS VisualStudio (I'm using 2005), it's possible to right-click in some code file and 'insert tracepoint' right there. The default message printed when the tracepoint is hit is Function: $FUNCTION, Thread: $TID $TNAME. I would rather have it different (e.g. Thread: $TID [{(void*)this}::$FUNCTION]). Now it's easy to just type in the ...

Why does my Service crash at DebugBreak() on Vista?

I'm writing a Win32 service in C++. I have a custom Assert macro that calls DebugBreak() (among other things). When I'm running my service under Vista, the service crashes when reaching the DebugBreak() call (an int 3 assembler opcode), showing the vista crash dialog. The error code is 80000003 (hardcoded breakpoint). Normally I'm expec...

GDB breakpoints

Hi, I have a list of breakpoints which I want to add each time I debug a particular program. Is there a way I can put all these breakpoint information in a file and use it at the starting of each debug session? In other words can I provide a script file with breakpoint information to GDB before I give the 'run' command. Thanks in Advan...

How can I stop execution in the Visual Studio Debugger when a private member variable changes value?

Let's say my class has a private integer variable called count. I've already hit a breakpoint in my code. Now before I press continue, I want to make it so the debugger will stop anytime count gets a new value assigned to it. Besides promoting count to a field and setting a breakpoint on the set method of the field, is there any other ...

Debugging a DLL which is in another solution on VS2003

I'm am trying to debug a DLL which is called from a VC++ application, but cannot step-inside the DLL function because the DLL source is located in another solution project. I have tried to set a break point right before the DLL function call but when I try to step-in it just passes right down. I am aware that it is possible to just de...

Breakpoint not firing using PHP/XAMPP/NetBeans/Moodle

Bit of an obscure one this. My setup is all running on my local Windows machine; I've got NetBeans IDE installed, a local XAMPP server with XDebug running, and an installation of Moodle with some custom addons in the mod directory. I can happily create breakpoints in PHP pages (including the main Moodle ones), but any breakpoints I pla...

VS2008: Breakpoints window gone while debugging?

This is probably silly but very frustrating. Using VS2008 with a C++ project, when I'm working normally, the breakpoints window is visible and active but when I'm debugging it disappears and can't be shown. This is a problem if I want to edit the condition of a breakpoint while running. Pressing the breakpoints window button doesn't do a...

Why does Visual Studio 2008 skip over my break points?

I am running Visual Studio 2008 with SP1. When I debug an application, it will skip over my break points. For example, I have two lines of code, each call a method. I will put a break point on both lines. I will run it one time, and it ill stop at the first break point, but not the next one. I will run it again, and it ill hit the secon...

How to add a conditional breakpoint in Visual C++

I want to add a breakpoint condition to my code in VC++ Express 2005, so that the breakpoint only triggers if a local variable meets a specified criteria. e.g. bool my_test(UIDList test_list) { foo(test_list); bar(test_list); // I have a breakpoint here, but only want it to trigger if test_list.Length() > 0 print(test_list);...

Can't set breakpoints in Eclipse

Following the Android notepad tutorials using Eclipse 3.4.2 on OSX 10.5.6. I'm instructed to set a breakpoint in one of the following ways: Double click on the gray bar to the left of the editor pane. this just brings up the "Add Bookmark" window Select "Toggle breakpoint" in the context menu the only options in the context menu ...

Javascript debugger issue in VS2008

I'm having a really annoying problem with debugging javascript with VS2008. If I simply press F5 (or choose 'start Debugging' from the Debug menu), the iexplore process is attached, but no breakpoints break in the scripts. The Script Documents tree doesn't even appear in the solution explorer. I already know: I can set a breakpoint i...

how to set breakpoint in this way?

Hello everyone, I want to set a break point and wants it to be triggered when a piece memory (begin address and length are known) are changed. I am working on Windows Server 2003 x64 platform. Either solution in Windbg or solution in Visual Studio are fine. My purpose is to monitor when the memory content is change. thanks in advance, ...

Why does my Eclipse project have phantom debugger breakpoints?

I've got a small project which, when run in the Eclipse debugger, always seems to stop in FileInputStream.class line 106, where files are opened. There are no breakpoints set, but Eclipse behaves exactly as if I have a breakpoint here. If I clear all breakpoints, it still happens. I have a second much-larger project in the same Eclips...

Xcode breakpoints only hit when set during debugging

I’m porting a C++ sdk from Windows to Mac OSX 10.5. I have a problem in Xcode where my breakpoints in certain files will only be hit if I set them while debugging. If I stop debugging and then restart, the breakpoints no longer get hit. If I add them while not debugging, they don't get hit. This is only in certain files and my breakpoint...

Breakpoints not being hit

When trying to debug a ASP.NET MVC app, the breakpoints in my controllers arent getting hit. When entering debug mode they just show an empty red circle with a warning triangle instead of the normal full circle. This is strange because debugging was working fine until now, and no configuration changes have been made in my environment for...

When Can Breakpoints Alter How Your Code Executes?

I've run into a very odd bug today. I have a button on a form, clicking it causes a grid on my form to be populated with data. If you click the button twice, it crashes with an 'Object reference not set to an instance of an object.' I ended up placing a breakpoint at the start of the Sub that handles the population of that grid and I ...

Weblogic slow with Eclipse breakpoints

Sometimes when I use Eclipse with breakpoints set, the performance of my Weblogic is very slow. Any ideas? The performance is slow in general - it isn't only slow when breakpoints are hit. I'm debugging with a Weblogic on my local machine. When I disable all breakpoints everything instantly speeds up. I don't always have this prob...

submit button does not trigger server-side code

the question says it all. i've an asp.net page using jquery. at first when i clicked the submit button, it'd show the object expected error. i ran the firebug and it displayed the error of 'return validate()' function which was added onClientClick of the button. <script type="text/javascript"> $(document).ready(function() { ...