debugging

Visual C++ Data Breakpoints on Floating Points Codes Changing

Hello. Are there possibility to set breakpoint (as i see Data Breakpoint) in VS 2005(C++) on Floating Point codes(ST0-ST7) changing? For example on changing of value ST7 with condition ST7==INF. Thanks a lot. ...

should I leave debug conditions in SSIS script componenets or visual studio for apps

When I write larger scripts in both t-sql and script components, I usually put in a boolean called debug which I can pass or set to as true that will pop up or drop debug information. For Tsql, I know it over head is negligible but is this the same in SSIS script components or VS for apps environments? ...

Cannot debug website: no symbols loaded

I'm suddenly getting an intermittent error with break points for my website. I'll get the solution from svn work for a ~ a day on it and then the next day I'll insert a break point and all of a sudden I get the "no symbols message". I've tried deleting all obj and bin folders. verfiying all pdb files are in datetime sync with .dlls ...

How to use Windows Symbol Packages with Visual Studio 2008?

At Microsoft I can download the Windows Symbol Packages for XP, Vista, Server, even Windows 7. My Problem is: how do I use these Symbols with Visual Studio? Where in VS 2008 can I add the downloaded and extracted symbols, so I can debug into Windows itself? What I want to achieve: I want to debug _beginthreadex/endthreadex, to see why/...

How to debug a "debug assertion failure" in VC++ 6

I wonder how to debug the following error: Debug Assertion failure Program: tomtoprog.exe File: dbgheap.c Line: 1044 Expression:_CrtIsValidHeapPointer(pUserData) ... I'm quiet new to windows development with VC++ 6 ... is there a valgrind or something like that? The tomtoprog code is not written by me and its rather messy ... so som...

How to debug .net Garbage Collection?

Is it possible to have a look at all .net objects which are collected upon calling GC.Collect()? I need to see what objects are still in memory and not reclaimed, so I can find where reclaiming the objects should have done manual, but was forgotten by the programmer. I don't want to call GC.Collect because someone somewhere forgot to di...

Fixing a bug under severe time constraints

Recently I had to fix a bug that was reported from the field. While the test team was trying to reproduce the issue, the customer was breathing down our neck and we had to have production ready code in just a week's time. When at last when we were able to reproduce the issue there was just 3 days left. I and my colleague had to put in a...

Debugging web apps

I've gotten pretty used to step-through debuggers over the years, both in builder, and using the pydev debugger in Eclipse. Currently, I'm making something in Python and running it on Google App Engine, and I should add that I'm pretty new to developing any real web app; I've never really done much beyond editing HTML code. So, I'm ru...

Tracing write access to class instance/memory range in gdb

Hi, I am trying to debug a small operating system I have written in an university course in C++. At runtime somewhere one of my objects is getting corrupted. It seems like this happens due to accidentally writing to the wrong memory address. As I am unable to find the place where this happens from pure looking at the code, I need anothe...

Javascript syntax errors in IE

I have created a fairly large Javascript app that works in Firefox and up until yesterday, IE. I've made quite a few changes and now I'm getting syntax errors in IE, but all is fine in Firefox. Obviously I have a trailing comma somewhere but I can't see it. IE's error message is less than helpful, not even telling me which JS file has th...

What is the best way to debug an asp page?

I'm trying to get an ASP page to work, but it keeps blowing up. How do I get it to display "response.write" info instead of blowing up? p.s. I noticed this as a technique and plan to give it a try. On top of page ad On Error Resume Next After each line of code use If Err.Number <> 0 Then Response.Write Err.Description Err.Clear End if...

HttpWebRequest timeout in 3.5sp1

We have a service that opens several HttpWebRequests. It ran fine under 3.0 until we upgraded the server to .net 3.5sp1. Now we get timeouts while waiting for the request. (we have verified that the endpoint is up and running). There are a few things that make this interesting. Increasing the number of max connections will let it ru...

How do you debug heavily templated code in c++?

I find it very hard to figure out what is wrong with my code when using C++ template meta-programming. It might be that I am just not very good at understanding the error messages, but as far as I'm aware I can't resort to putting in print statements or breakpoints to figure out what's going on. What tips or advice can you offer when tr...

How can I get rid of the "The target assembly contains no service types" error message in VS2008 ?

I've got a Client/Server wcf application My executable doesn't define any ServiceContract, it doesn't even have a reference to System.ServiceModel (but instead has a reference to an assembly which contains the connection logic to the server) I've another assembly, which is referenced by my exe, which contains a ServiceContract. It use...

Comparing program flow between same app in .net 1.1 and .net 2.0

I'm looking at upgrading an application we're developing here using Visual Studio 2003 / .NET 1.1 to Visual Studio 2008 / .NET 2.0. Now I was testing stuff, and found that I have a reproducable case in which the .NET 1.1 version does what it is supposed to do, while the .NET 2.0 version (same code) ends up in an infinite recursion (the ...

Debugging Delphi Application on Non Development Environment

I am attempting to use WinDBG or another debugger to debug a CodeGear Delphi 2007 Windows application on a remote machine. I have been unable to produce symbol files for WinDBG. Is there a way to use WinDBG or another debugger to debug Delphi applications on a system that doesn't include the IDE? Edit1 The remote debugger is not an o...

How to find the cause for a USER 44 PANIC?

One of the products we develop is a phone app for nokia phones done in C++ and Symbian, we started getting "random" crashes a while a ago with a USER 44 panic. I am pretty new to the symbian environment so I am looking for tools and recommendations to help finding the root of this bug. Is there a equivalent of a "stack trace" that I c...

Can you set VS2008 to break on an error inside a try-catch statement

One of the things I loved about VB6 is that you had the ability to tell the development environment to break on all errors regardless of what error handling you had set up. Is it possible to do the same thing in VS2008 so that the debugger will stop on any error even if it happens inside a try-catch statement? The problem is particular...

Breakpoints behaving strangely in visual studio

I am having two issues with the debugger using visual studio version 9.0.30729.1 using .net 3.1 Issue one - I hit a breakpoint, and F10, F11 do not move me to the next instruction. If I repeatedly press F10 I will eventually step to the next instruction. I can place another breakpoint further down in the code and do an F5 to get to t...

Do I need to make an Ad Hoc Provisioning Profile to debug my app on my iPhone?

I suppose the title of my question says it all :-) I think I'm just cloudy on how debugging works on a real device - is that how to go about it? I've been reading through Apple's docs on creating provisioning profiles for distribution, but I'm not finding any information for simply debugging my app, which is running on my device, through...