debugging

Debugging exercises

Is there something like Project Euler, but with each task consisting of a broken program which you have to fix? So one can improve debugging skills. Where you can post your improved version, and it checks if your fixed version of the program works correctly (and possibly that you haven't just totally rewritten). Perhaps also a spoiler pa...

What are efficient ways to debug an optimized C/C++ program?

Many times I work with optimized code (sometimes even involving vectorized loops), which contain bugs and such. How would one debug such code? I'm looking for any kind of tools or techniques. I use the following (possibly outdated) tools, so I'm looking to upgrade. I use the following: Since with ddd, you cannot see the code, I use gd...

Remote Debugging on IIS - Access Denied Nightmare!

Hi. We have two Win2k3 servers here, one is a domain controller and the other our webserver. I'm running an ASP.NET MVC web app setup as a website in IIS on the webserver. I've copied across the x86 remote debugging tools to the webserver, logged in to an admin account and ran msvsmon. I added the user I'm logged into my workstation ...

Internet Explorer form input problem.

I'm having a ton of problems with every version of IE, one of which is that IE7 won't register input in this text input field. http://www.flightm8.com/redesign I'm a bit nervous about posting the link since the site looks a mess and doesn't function properly in any version of IE at the moment, and it is still quite a way off being read...

plain javascript code to highlight an html element

to debug some javascript code, I am looking for javascript code (preferably just js, without libraries and dependencies) that can highlight a div or span (probably by putting over it a div or span of the same size and shape with a bright color and some transparency). I pretty sure it can be done, but I don't know how to start. CLARIFIC...

How to debug macros efficiently in VS?

Hello, I've got a pretty complicated macro inside my (unmanaged) C++ code. Is there any way to expand macros in VS debugger? Or maybe there is another way to debug macros there? F.e. I'd like to place a breakpoint inside it. (Yes, I know macros are bad.) ...

Debugging Scheme in Emacs

I am shifting from DrScheme to Emacs to edit my PLT Scheme files. Can you teach me how to use steppers or debuggers in Emacs? Thanks. ...

Simple silverlight open-file-dialog errors

A while back I wrote a silverlight user control which had a csv import/export feature. This has been working fine, until recently I discovered it erroring in one scenario. This may have been due to moving to Silverlight 3. The Error: Message: Unhandled Error in Silverlight 2 Application Code: 4004 Category: ManagedRuntimeError Message:...

PostSharp and debugging problems?

I've made a very simple aspect, and found a problem when debugging it (see code). I set a breakpoint on the method exit, and it hits inside "entry" method actually. PostSharp 1.5, Visual Studio 2008 SP1 Is this a known bug, are there any workarounds? class Program { [MyAspect] static void Main(string[] args) { Console.WriteLine("bo...

Safari issues with javascript + css

I have some strange behavior going on with safari, im using the jQuery.GridLayout plugin and css for styling. Just for some context, this website layout is a simple header followed by the content which are a collection of blocks (each block is a div) positioned by the javascript and rearranged every time the window is re-sized. When I ...

How can I view SQL Generated by Visual Studio DataSource?

I've got a data source in Visual Studio. Is there any way to view the SQL that it generates before it sends it to the database? I don't just want to see the SelectComand, InsertCommand properties which are part of the asp:SqlDataSource, I want to see the query once the parameters have been filled. Is it possible to do this from Visual St...

How to Debug blackberry app in Emulator and device.

Hi Friends, How the device and emulator debugging is done in eclipse for blackberry development. ...

How do I enable debugging with Visual Studio on Win7 when an application crash unexpectedly?

I have a .NET application that crashes because something is wrong with its configuration file. In Windows XP it asks me if want to debug my application with Visual Studio but in Windows 7 (and I guess in Vista) it shows this error message: How switch this functionality off and get back the Windows XP behaviour? Additional informatio...

Debug Classic ASP via IIS 7

I'm having a problem showing detailed errors for classic ASP pages. Initially it just showed default 500 error page, we then followed the instructions here but now it only shows: An error occurred on the server when processing the URL. Please contact the system administrator. Any ideas? ...

Win32 Dialog closing on startup

Hey, I recently asked a question here about a dialog problem I had, but i discovered that the problem lies in such a different area i intentionally thought that I will rephrase my question here. The problem is that I've been working on a DirectX10 game engine. When the engine inits there should pop up a dialog box which gives the user ...

Symbols, in Microsoft Debugging Tools for Windows?

Can anyone explain the need/use of 'symbols' in the Microsoft debugger? I spent some time trying to figure out the debugger a while back and never was able to get it making any sense ( I was trying to debug a server hang).. Part of my problem was not having the proper 'symbols'. So what are they.. and why would I need them.. Aren't I j...

vmware fusion view coldfusion debugging host os

i am using vmware fusion windows xp apache coldfusion 8 and I am trying to view the cf debugging through safari on my snow leopard host. I have turned on debugging and tried adding my ip, however, this did not work, any ideas? ...

Java: Netbeans debugging session works faster than normal run

Hello, I'm making Braid in Netbeans 6.7.1. Computer Spec: Windows 7 Running processes: 46 Running threads: +/- 650 NVidia GeForce 9200M GS Intel Core 2 Duo CPU P8400 @ 2.26Ghz Game-spec with normal run: Memory: between 80 MB and 110 MB CPU: between 9% and 20% CPU when time rewinding: 90% The same values for the debugging session...

Problems with Exception Handling in Winforms application using a global error handler

I have a Windows Form application that has a global error handler to display unexpected errors. Namespace My Class MyApplication Delegate Sub ProcessParametersDelegate(ByVal sender As Object, ByVal args() As String) Private Sub MyApplication_UnhandledException(ByVal sender As Object, ByVal e As Microsoft.VisualBa...

Disable EXCEPTION_DEBUG_EVENT from being passed to an attached debugger

I'm dealing with an anti-debug application which disables EXCEPTION_DEBUG_EVENT from being passed to my debugger, instead it executes its SEH and UnhandledExceptionFilters. I tried it with 3 different debuggers (even selfmade one) My debugger receives other debug events like LOAD_DLL, CREATE_THREAD etc Exceptions are not passed when fi...