debugging

Can string formatting be used in text shown with DebuggerDisplay?

I want to apply the DebuggerDisplayAttribute to include an memory address value. Is there a way to have it displayed in hexadecimal? [DebuggerDisplay("Foo: Address value is {Address}")] class Foo { System.IntPtr m_Address = new System.IntPtr(43981); // Sample value System.IntPtr Address { get { return m_Address;...

Disabled controls in Firefox

First of all in my custom webpage project, i use a master-page. What drives me nuts, is that hyperlinks (2 of 5 in a child page) seem to be disabled while debugging with firefox (V3.5.5). I face the same problem with a radio-button-list which exists within an asp wizard control. It seems to be disabled, (Does not accept focus). What i...

gcc debug log files on Windows?

I am starting to ship Qt applications built using MinGW and have a question about debug logs. When using code compiled with MSVC, if my app were to crash a log file or mini-dump could be created that was invaluable when diagnosing the problem. There is even a very cool library called crashrpt that can generate and then email this log f...

PHP - help fix a bug caused by two number dividing exactly

I have been working with a piece of code for youtube style URL's but I have found a bug and I am hoping someone can show me the most efficient way to fix it. function alphaID($in, $to_num = false, $pad_up = false, $passKey = null) { static $passcache; if(empty($passcache)) $passcache = array(); $index = ...

How do I examine defined constants in PHP?

I'm stepping through the source code of CodeIgniter with Xdebug in NetBeans and I'm looking for a way to see defined constants as they are defined. If it's not possible, are there any other ways to display all defined constants? ...

How to NOT generate debug information for specific source files / source sections?

Is there a way to create a Debug build of our Vs2005 (C++) project and exclude specific modules or code sections from being included into the debug information? Or is there an option to have VS generate multiple PDB files from a single project? It looks like our generated PDB file is getting too large for Visual Studio to handle/genera...

What are some "catch all" keywords I can use when debugging in Visual Studio - like "this"?

Hey Guys Again, learner here. Generally I like to be able to look at the whole state of the application to understand what information I have available to me in the current scope. Something I do a lot is open up QuickWatch and evaluate this which gives me everything inside the current class. I was wondering if there are any other ke...

In VS2008, is there a way to automatically "Attach to Process"?

Hi there, I'm working on a solution that has three projects, all of which run when I start debugging. It gets annoying because if I want to debug an aspect of a particular project that isn't my startup project, I've got to attach the process every time. Is there any way to have the debugger automatically attach to all projects? Thanks...

ASP.NET Webapplication unavailable on Live Environment - How to troubleshoot

I have a asp.net 3.5 web application which is deployed on server 2003 and IIS 6. After running fine for a few weeks it goes "Down" and by down I mean that when I try and access it the browser looks like it's loading but never actually serves the page. After an IIS reset it loads quickly again. My question is what are the steps and tool...

Load a flash swf in debug mode

Hello I'm trying to debug a problem in a client side flash application (the swf) which communicates with a server side .asc. How do I get the client side flash to load in debug mode? I can get it into debug mode after it has loaded but I need to debug the loading of the flash. The application is a video conference app and it has a pro...

Debugging SQL Server 2008

I have Visual Studio .Net project which uses ADO connection to call stored procedure of SQL Server database. It is possible to set a breakpoing at stored procedure and debug it. I have local SQL Server and SQL Enterprise Edition installed. ...

Story of a mysterious bug Flex/ Actionscript

Suddenly Flex seems to dislike variable declaration. For example I write (on the script part of a mxml component) <mx:Script> <![CDATA[ import mx.collections.ArrayCollection; var i:int = 1; while(i< 9) i++; [Bindable] public var evolution:ArrayCollection = new ArrayCollection(); ]]> ...

debug output from an ActiveX control

I'm developing an ActiveX control and I'd like to throw some debug output to the console area in tstcon32 like other controls are doing. What system call is doing that? stdout doesn't seem to be it ...

Step into another assembly?

In Visual Studio, is it possible to step into a loaded assembly when you don't have both solutions open? That is to say, I have two solutions, and I'm trying to find a bug that only shows up in the the second one. The second one references the assemblies output from the first. How would I load the symbols from that assembly? ...

Setting up Xcode for developing Plug-ins

hi. i have a very basic question. i've never worked in XCode before but i am designing a plugin (objective-c) for an open source radiology program called OsiriX. i can get the thing to compile fun and i can even get the plugin to run in OsiriX. but i'm not sure how to run/debug it from XCode. Run/Debug is grayed out on my xcode. is it be...

Debugging Django/Python on Dreamhost

Debugging Django on Dreamhost is proving quite the challenge. To my knowledge, print statements aren't available, and neither are logs... any suggestions? ...

Marking the Initial State of this Finite Automaton

I'm working on a finite deterministic automaton based on this. From this code: public void markInitialState (int initialStateId) { State theInitialState = allStates.get(initialStateId); theInitialState.isInitial=true; allStates.add(initialStateId, theInitialState); ...

How to debug FUSE filesystem crash in Linux

Currently I am developing an application using FUSE filesystem module in Linux (2.6 Kernel) in C language. Due to some programming error, the application crashes after mounting the filesystem. Since I am a novice developer in Linux/C environment. Could you please let me tell me possible options to debug such programs? ...

Ollydbg condition

I need Ollydbg to pause when one of the registers contains a certain string. Any way I could accomplish that? ...

Debugging a NULL CGContext under Cocoa/Carbon

During the execution of my program I'm getting the following output in the XCode debugging console: <Error>: CGContextSetTextMatrix: invalid context 0x0 I have no idea where in the application this NULL-context is being passed to the OS. Anyone know of a good technique to hunt it down? Can I break into the application when something i...