breakpoints

How to step through an entire block of code?

I would like to be able to skip over certain parts of my code when I set breakpoints. For example, I have a code block which iterates 52 times to create a deck of cards. This is working properly and I would rather not have to hit F11 to keep stepping through that block. Is there anyway for me to "skip" this so that the debugger just g...

Is there any way to break on the next line of code executed in Visual Studio?

I'm trying to track down a bug that occurs when I click a particular element on an aspx page... In the past I've had to track down the class that handles that particular event and put a break point on the line that I think should be hit. Often it takes me several tries before I finally find the correct class....especially if the class i...

windbg setting conditional breakpoint

I want to put a conditional breakpoint in windbg. For example lets say LoadLibrary API. How can I put breakpoint such that it should it whenever user32.dll get loaded. > x kernel32!LoadLibraryW It will give some address [XXXX] Now I can put breakpoint as > bu [XXXX] but this will hit for all calls to LoadLibraryW. Any suggesti...

Visual studio debugger: Break on entering an external function?

Hi, With "Just My Code" turned off and a source location/server, it's easy to step into functions that are not in your code. Is there a way to set a breakpoint on one of these, though? Basically I want to say "when this function is called from anywhere, break and show me the source". I tried the "set function breakpoint" and entering th...

Breakpoints get deactivated in Xcode: EXC_BAD_ACCESS when NSZombieEnabled == YES

My app crashes at (seemingly) random events. So, I wanted to add NSZombieEnabled to debug my iPhone application. I cloned my target and set its Info.plist to the same as the original target and set NSZombieEnabled to YES. Once i run the app, it crashes with a stack trace of... #0 0x3025db0c in ___forwarding___ () #1 0x30239db2 in __f...

Is it possible to debug both a Silverlight and WCF project at the same time?

I have 3 projects in my solution: 1) A silverlight Application Project 2) ASP.Net Web Application Project 3) A WCF Service Application. Projects 1&2 have a service reference to project 3. The binding type is basicHTTPbinding. If I set project 2 as the start-up project, I am break points set in both project 1 & 2 are hit, but not break ...

Stop execution of my program and go to the Debugger without setting breakpoints (Visual Studio/GCC and C++)

Hi! I've found information about this feature on SO some time ago, but the topic was a duplicate of Hidden Features of Visual Studio (2005-2008)? and I can't find it anymore. I want to use something like this: #ifdef DEBUG #define break_here(condition) if (condition) ... // don't remember, what must be here #else #define break_here(co...

gdb breakpoint on pthread_create

I am trying to set a breakpoint in linux in gdb for a program creating threads. I would like to set a breakpoint on thread creation, but unfortunately pthread_create is a versioned symbol, and I can't get its full name. If I type: catch thread_start I get Catch of thread_start not yet implemented How is the best way to catch thre...

Code block execution order in PHP

I remember there was shortcut key (probably F8) in Turbo C that showed which codeblock C would execute next. I wonder if something similar is availabe for PHP? I'm an absoulte beginner and sometime I just don't get how things are executed in PHP. Thanks. ...

gdb not hitting breakpoints

To learn a bit more about FreeBSD and *nix systems in general, I'm starting to look at the binaries from the DEFCON 17 Capture The Flag game. Right now, I'm reversing the tucod binary. Here's some possibly useful information on tucod: tucod: ELF 32-bit LSB executable, Intel 80386, version 1 (FreeBSD), for FreeBSD 7.2, dynamically link...

Problem with breakpoint insertion

Possible Duplicate: Break point issue I am unable to put a breakpoint. I am getting the message in the breakpoint like: "break point will not be currently hit, no symbols are loaded" ...

Not stopping at server side breakpoints whilst Debugging classic asp with Visual Studio 2005

The website is set up locally on my IIS 5.1 on xp. Application protection is set to low within IIS so the asp is run inside the inetinfo.exe process. I start debugging , attach to the inetinfo.exe process and refresh the page in the browser so the page reloads and reruns the server side code. Non of the breakpoints get hit. There's no w...

Hitting breakpoints in MonoDevelop 2.2 Beta 1 on OSX

Hey guys Just installed MonoDevelop 2.2 Beta 1 on OSX Snow Leopard, and all is good. I created a new ASP.NET web project, and ran it. So far so good. But then I put a breakpoint in the code behind, and it didn't hit it...any ideas why? cheers ...

Why doesn't the debugger hit this breakpoint consistently? Am I neglecting a file handle?

Consider the following code: static void Main(string[] args) { using (MemoryStream memoryStream = new MemoryStream(Resources.SampleXMLFile)) // Breakpoint set here { using (XmlTextReader xmlTextReader = new XmlTextReader(memoryStream)) { var z = XElement.Load(xmlTextReader); } } Console.ReadLine(); }...

Visual Studio - Runtime impact of conditional and disabled breakpoints

After spending a little time wondering why my app was running a particular scenario very slowly with the debugger attached, I discovered that this was due to having a conditional breakpoint (whose condition was never being met). This seems reasonable, as the CPU would signal the breakpoint and VS would need to evaluate the condition bef...

New Data Breakpoint disabled in Visual Studio 2008 mixed project

In a DLL invoked from C++/CLI code I don't seem able to set Data Breakpoints in some pure C code. The menu option New Data Breakpoint... is disabled as is the popup in the breakpoints window. I haven't been able to find anyone else reporting this, the only similar experience is for a Mobile developer. Debugging is otherwise working fine...

Why can I not enable breakpoints in Visual Studio 2005?

I have seen that sometimes breakpoints cannot be enabled in Visual Studio, they appear as empty circles, with a warning sign when enabled. This icon change is all the information VS gives. Particularly I'm suffering that in a Windows CE 6.0 project where I cannot enable any breakpoint in any of the sub-projects or in the OS design. The ...

Why is my Breakpoint Condition not being met when my Breakpoint Condition is being met in Visual Studio?

I have a piece of code in front of me that iterates through a long list of urls and something is going wrong when those urls include a certain type of document. I don't want to see every iteration, so I've set up a conditional breakpoint. The trouble is that I'm not a C++ programmer so I'm slightly having to fish around to work out how ...

Xcode + remove all breakpoints

Hello, Is there any way to remove all the breakpoints in Xcode? Regards, Pratik ...

Loops within Switch statement

my switch statement has about ten outcome, but some of them need 1/2 loops to check, so i can't write them within case(condition), so i've tried using more than one default case, is this possible? <?php switch(true) { case 1: break; case 2: break; default: echo "this text is never printed ??"; while(true) { whi...