debugger

Delphi - How to re-enable a debugger exception notification?

I opened a project (created in D2007/08) in D2009 and it would compile but throw tons of exceptions when executed. Strange thing, but I know the project's a mess, so I want to go ahead and fix it. Well, not really fix all of it, just make it work would be enough. When I ran it, I got some Debugger Exception Notification (the little mess...

How can I make a Visual Studio Macro to attach the debugger to all instances of w3wp.exe?

I'm normally developing web apps, and a surprisingly large amount of my work time is spent doing "Ctrl + Alt + P", sorting by Process Name, and picking w3wp.exe to attach my debugger. To make matters worse, I'm working on an app that spans several application pools, so I normally have 2 or 3 instances of w3wp.exe, and it's impossible to...

Can I adjust the visual studio "Break when an exception is thrown" options programatically?

Briefly: In Visual Studio 2008, the Debug menu has an Exceptions... option. When clicking this, it brings up the "Break when an exception is thrown" dialog, wherein I tick the box next to "Common Language Runtime Exceptions". I want to be able to tick / untick this box programatically. Elaboration: This causes the debugger to break w...

How to get a call stack for an intermittently crashing devenv.com?

I have a nightly build DOS batch script that invokes devenv.exe to build a solution file. Intermittently I observe a devenv.com crash. I get a DW20.exe "share your pain" dialog. 1) If Debug button is pressed, I am not presented with a usual "Choose your debugger" window. Rather, it does nothing. 2) If I launch a Visual Studio and ...

Debugging commands (step over/into) cause unhandled exceptions

I'm using Visual Studio 2008 on a 64-bit version of Vista. After my program stops on one of my breakpoints, I can't step over or into the current line without either an Illegal Instruction exception or an Access Violation exception being thrown by my application. If I right-click on the next line and choose "Run to here" (equivalent to...

Visual studio debugging shortcut

What key do I use to step into a method in VS2008 debug mode? If I have a method call like this: string s = StepIntoThisMethod(DoNotStepIntoThisOne(i), NotIntoThisEither(j)); If I use F11, I step into the methods in the argument list. I would like to step into StepIntoThisMethod method ...

What is it about the Think Pascal debugger that makes it so legendary ?

I have been sharpening the coding knives and getting back into dev. A few years ago, many people mentioned that the Symantec Think Pascal debugger that came on the (classic) Mac was the absolute bee's knees, and that nothing else was like it anywhere. I found that statement odd, considering that no one has tried to clone said debugger......

Attach Debugger to IIS instance

I have IIS 5.1 on a XP machine, and visual studio 2005. How do I go about attaching my debugger to IIS instance. BTW: I'm not seeing the IIS process within the running processes or probably I don't know what to look for . ...

jumping into javascript?

Duplicate: Which JavaScript framework is best for web development? JavaScript Debugger others... and still more... I want to learn javascript but first it would be nice to know the best tools out there. Like what's the best frame work, debugger, method for debugging? thanks in advance. ...

How are debugger breakpoints implemented efficiently?

Sometimes I accumulate a large mass of breakpoints from different debugging sessions in different places in my code. How does the debugger efficiently know when to stop for a breakpoint? It can't possibly be stopping at every single line to check the line number and source file name against a potentially long list of breakpoints, can i...

How to catch exceptions on another thread without affecting the debugger

I have a udp service which is listening on a socket for udp datagrams: int result = 0; try { result = m_ReceivingSocket.Receive(buffer); } catch (SocketException e) { Log.Debug("Timed out with socket exception, so no result was found.", e); } It does this on a Timer every 1 millisecond because it is important that I get the udp me...

Visual Studio Debugger Output - Same output but different formats (like decimal output in one project, hexidecimal in another).

I'm learning some DirectX programming by re-implementing some DirectX code into different projects, I did find however that the debugger seems to output data differently between the two projects (the sample and my one). On my project if I do this: D3DSURFACE_DESC desc; pTarget->GetLevelDesc(0,&desc); int width = desc.Width; int height ...

How to setup the JIT debugger in Delphi 2009?

Hello, On my machine I have Visual Studio 2008,C# Express,Delphi 7 and Delphi 2009 Architect(No updates). When I usually run Delphi 7,it notifies that the JIT debugger is currently set to another application(Visual studio in my case) and asks me if i'd like to change it to Delphi. If I press Yes,I can use the debugger in Delphi 7,othe...

Visual studio 2008 crashes when starting to debug

When I press F5, everything compiles fine, but when the app is to be started, VS crashes, showing the "Just in time debugger" dialog. More than one (similar) solution has this problem. A new solution containing just a form, works. This problem started out of the blue, I have made no changes to the environment as far as I can understand....

get variable name in debugger visualizer

Is there a way to get the underlying variable name of a target object in a Visual Studio debugger visualizer? The built-in string visualizer does it: string myStr = "abc\ndef"; Debugger.Break(); Clicking on the visualizer icon for myStr, you will see the "Expression" text box shows "myStr". How can I get this in my own visualizers? ...

How to view property value in debugger

I have a UIViewController and would like to see properties such as myview.view.hidden. In another class where I declare an instance of UIViewController, I can assign and read the property through code but would like to know the value at various points. In the debugger console, I can't do "po myview.view.hidden" or "p myview.view.hidden...

How do I inspect a Singleton in the Flex Debugger?

I'm storing my model data in a Singleton called ModelLocator. This is pretty common... Can I look at this data in the debugger? [Edited - Title changed] ...

What are some good resources for learning how to write a debugger

There seems to be a lot of good references for learning how to write a compiler. But I haven't been able to find much in the way of how to write a debugger. Is each debugger completely unique, or are there common techniques used to implement them? I'm particularly interested in debugging interpreted languages, but at this point anything ...

Getting line number from pdb in release mode.

Is it possible for the debugger (or the CLR exception handler) to show the line where the exception happened in Release mode using the pdb? The code, in release mode, is optimized and do not always follow the order and logic of the "original" code. It's also surprising that the debugger can navigate through my code step by step, even i...

how to search for $exception and $ev special debugger variables on google or yahoo or bing

I want to find out more about the $ev special variable and special variables in general. Anyone know how to search to ensure google or bing or yahoo doesn't ignore the $ sign. The usual help about using + in front of the word doesn't seem to help nor speech marks. Yes I've tried search google for the answer, stack overflow seem to have...