breakpoints

Disable/remove child Breakpoints?

谁都会走 提交于 2019-11-28 12:06:26
I'm debugging an ASP.NET Website with C# in Visual Studio. When I set a breakpoint (during debug), over time, the created breakpoint will accumulate many child breakpoints. (See here .) Now, sometimes when I remove a breakpoint by clicking the red glyph, the breakpoint will still be hit the next time the line is executed, because the child breakpoints persisted. Removing the breakpoint in the breakpoint window will resolve the problem, but it's annoying to find the correct breakpoint(s) when you have many set. Also, the removal of a breakpoint with many children is quite a slow operation. So

Breaking on unrecognized selector

荒凉一梦 提交于 2019-11-28 11:02:13
Is it possible to set a break point on this bit of feedback in the console? This would make handling this problem so much easier. Unrecognized selector is an exception, and you can set a breakpoint on exceptions. In Xcode 4, go to the breakpoint navigator, click the +, and choose "Add Exception Breakpoint". Under Exception, choose Objective-C. Under Break, choose On Throw. It should look like this when you're done: 来源: https://stackoverflow.com/questions/7354169/breaking-on-unrecognized-selector

Find out which line will be executed in Visual Studio debug mode

不打扰是莪最后的温柔 提交于 2019-11-28 11:01:16
问题 How can I find out which line will be executed after performing any action? If I know what will be executed I can put break point there. But what if I am not sure where to set breakpoint or just I need to go to the executing line faster (without setting breakpoints). "Break All" is not what I look for. It is pausing debugging, so I cannot perform any action (just after which I want Visual Studio sets breakpoint automatically) In other words, for example I want to start debugging each line

How do I set a breakpoint on every access to a class

可紊 提交于 2019-11-28 10:49:05
When working with third party systems, especially very configurable systems that dynamically load providers, controllers, components and so on, I sometimes just want to know when a certain object or class is accessed. Normally, I'd place a breakpoint on any potential lines in my source (a nuisance, but it works), but if source is not available: How can I instruct Visual Studio 2010 Ultimate to break on any and each access to a given class? Note: as far as my experience goes, this is not generally possible, but I'd like to see it confirmed SLaks You can click Debug > New Breakpoint > Breakpoint

Breakpoint not hooked up when debugging in VS.Net 2005

强颜欢笑 提交于 2019-11-28 09:30:48
Been running into this problem lately... When debugging an app in VS.Net 2005, breakpoints are not connected. Error indicates that the compiled code is not the same as the running version and therefore there's a mismatch that causes the breakpoint to be disconnected. Cleaned solution of all bin file and re-compile doesn't help. Not just happening on a single box or person either. Added Note: This solution is in TFS for Source Control. If I delete my local TFS repository and get it from source control from scratch, SOMETIMES the problem goes away. I've also tried un-installing and re-installed

VS 2008 breakpoint will not currently be hit. No symbols have been loaded for this document

泄露秘密 提交于 2019-11-28 08:55:05
I am struggling to overcome this obstacle and I have high hopes that someone on SO can help. When I set a breakpoint in my class library project. It appears as a normal breakpoint. When I start debugging my solution the breakpoint becomes hollowed out and has a yellow triangle with an exclamation point inside. The tooltip displayed when I pan over the breakpoint is, " The Breakpoint will not currently be hit. No Symbols have been loaded for this document. " This project is not an ASP.NET application, it is simply a winForms application. I have taken over an existing winForms application with

Why does Visual Studio 2008 skip over my break points?

懵懂的女人 提交于 2019-11-28 08:14:25
问题 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 second one, not the first one. I have tried to clean the solution and a rebuild. I do have multiple projects in the solution. 回答1: Symbol file incompatibility It's

How to break on instruction with a specific opcode in GDB?

落花浮王杯 提交于 2019-11-28 07:38:47
问题 I have the assembly code of some code that will be executed at a point in the program. I don't know the address of the code in memory. Is it possible to make gdb break when the current instruction matches with an inputted instruction? For example I want gdb to break whenever gdb reaches this instruction: leaq 0x000008eb(%rip),%rax 回答1: No, this is not possible and it would also be very inefficient to implement. Debugger's typically support two kinds of breakpoints: Hardware Breakpoints : The

How do I add Debug Breakpoints to lines displayed in a “Find Results” window in Visual Studio

陌路散爱 提交于 2019-11-28 07:37:04
In Visual Studio 2005-2015 it is possible to find all lines containing certain references and display them in a "Find Results" window. Now that these result lines are displayed, is there any keyboard shortcut that would allow adding debug breakpoints to all of them? Jeff Hillman This answer does not work for Visual Studio 2015 or later. A more recent answer can be found here . You can do this fairly easily with a Visual Studio macro. Within Visual Studio, hit Alt-F11 to open the Macro IDE and add a new module by right-clicking on MyMacros and selecting Add|Add Module... Paste the following in

Visual Studio: How to trigger an alarm when a breakpoint is hit?

喜夏-厌秋 提交于 2019-11-28 07:14:13
Is there a way to trigger a beep/alarm/sound when my breakpoint is hit? I'm using Visual Studio 2005/2008. Nescio Windows XP Control Panel -> Sounds and Audio... -> Program Events - Microsoft Developer -> Breakpoint Hit Windows 7 Control Panel -> All Control Panel Items -> Sounds -> Sounds (tab) - Microsoft Visual Studio -> Breakpoint Hit Yes, you can do it with a Macro assigned to a breakpoint. This works in VS 2005, I assume 2008 will work as well. I assume you don't want a sound on EVERY breakpoint, or the other answer will work fine. There is probably a way to play a specific sound, but I