debugging

Instrumentation (diagnostic) library for C++

I'm thinking about adding code to my application that would gather diagnostic information for later examination. Is there any C++ library created for such purpose? What I'm trying to do is similar to profiling, but it's not the same, because gathered data will be used more for debugging than profiling. EDIT: Platform: Linux Diagnostic i...

asp.net debugging on production server

We have recently deployed an ASP.Net application on Production server and are having some trouble with it in IE. We have built a custom security module based on cookies. The interesting part is, everything works perfect on staging server in all browsers and it also works on Production server but ONLY for Firefox. the process is able to w...

How to debug PYGTK program

When python raise an exception in the middle of a pygtk signal handling callback, the exception is catched by the gtk main loop, its value printed and the main loop just continue, ignoring it. If you want to debug, with something like pdb (python -m pdb myscript.py), you want that when the exception occure PDB jump on it and you can sta...

Dataset returning ZERO results

I am trying to fill in a combobox on my winform app from the database. I know there is info in the DB. I know the SP works. It returns the correct ColumnNames. But the DataSet itself is empty? Help!?!? Call from my form--> cboDiagnosisDescription.Properties.DataSource = myDiagnosis.RetrieveDiagnosisCodes(); The RetrieveDiagnosis...

How To Debug VB.Net Crystal Reports Application That Causes VS2008 to Hang

Hi, I have encountered an error while debugging a VB.Net application in Visual Studio 2008. While debugging the console application in Visual Studio, when the application instantiates a Crystal Reports 'ReportDocument' object, VS2008 hangs. Even when the devenv.exe process has been killed, I am unable to kill the still running vshost...

Testing a visual c exe on a test vanilla machine don't start

This Application has failed to start because the application configuration is incorrect. Reinstalling the application may fix this problem. This is what I get when i try my debug file on a system without visual studio installed. I tried to copy the Debug_NonRedist\x86\Microsoft.VC90.DebugCRT in the same folder as my exe, wi...

Running the rpmbuild command with the --quiet option flag results in extensive debug info.

Hi all, I wish to minimize the output of my rpm build procedure. I run the following command: rpmbuild -ba --quiet "/tmp/yaneeve/kit/linux/rpm_spec" My system is: Linux yaneeve-lnx-82-5 2.4.21-47.ELsmp #1 SMP Wed Jul 5 20:38:41 EDT 2006 i686 i686 i386 GNU/Linux The rpmbuild version is: RPM version 4.2.3 The %prep section of my rpm s...

What is the best practice for debug statements which have string operations in them?

I often find myself adding either concatonated strings or using a string formatter in my debug statements in log4net and log4j should I surround these debug statements with an "if debug" block to stop myself from wasting resources by processing these parameters even though the debug statement will not be printed out? I would assume that...

Where Can I find info on advanced debugging using dbx on AIX?.

Where Can I find info on advanced debugging using dbx on AIX, by advance i mean debugging threaded applications that call your shared library. and i do not own the threaded applications.. but thy call my functions from shared library(its like a plugin).. ...

Link (randomly?) fails with Visual debug DLLs

I have regularly this issue under Visual 2005 or 2008 : When I compile a bunch of DLLs (native C, C++, managed), sometimes, few of them don't link correctly with some microsoft debug DLLs. The output does not mention anything (no warning, no error). I can't be aware until I launch my program and get a "Module not found exception" withou...

Secure Debugging for Production JVMs

We have some applications that sometimes get into a bad state, but only in production (of course!). While taking a heap dump can help to gather state information, it's often easier to use a remote debugger. Setting this up is easy -- one need only add this to his command line: -Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=n,a...

.NET Debugging & Tracking Performance: tricks / hidden features?

What are your opinions about what techniques should I use in the performance analysis and optimization of every application done in .NET technologies? Also what kind of debugging/tracing techniques do you know that can be powerful? Do you think that at large scale projects is necessary to have custom debugging/diagnostic classes? Do you...

Is there a function like PHP's vardump in Delphi?

I've given up on the Delphi 7 debugger and am pretty much relying on outputdebugstrings. Is there a standard function I can call to get the contents of an object as a string like the debugger would if I set a breakpoint? ...

Is there a way to get a fully executable string of the SQL that is about to be run by a Linq2Sql expression?

I know you can get the SQL, but it's paramterized without the parameters being visible. Can you get the "full" string, so to speak? ...

Visual Studio visualizer similar to Mole

Hi All Mole visualizer for WPF in Visual Studio is a great tool for debugging WPF apps. What I want to know is, is there a visualizer tool with Mole like functionality for general .Net debugging. I find the built in watch capabilities to be a little fidly. Thanks ...

What is the meaning of the color of the 'breakpoint' mark in Xcode

When I set a breakpoint (double click the border of the editor at a particular line), there are 3 colors: 1. blue 2. faded blue 3. yellow with blue border can you please tell me what are the meaning of each color? Thank you. ...

Unable to attach to asp.net worker process as it is not in the process list

I have been succesfully debugging my asp.net site using the Visual Studio 2008 virtual server however all of a sudden it has started timing out when connecting to the debugger with the following message: "Unable to start debugging on the web server. The web server did not respond in a timely manner. This may be because another debugger ...

TDD Unit testing (VS 2008) WCF services - Symbols not loaded for debuging test

Hi there, Can anyone help, i have been succesfully testing with the built in tdd that ships with vs 2008. But now i wish to test my wcf... I added a default.aspx in the wcf service (you need to do this according the ms) ... now when i put a break point in my test.. and click the icon debug test in current context, all goes well ..,the t...

undefined params and session hashes in before_filter

Does anybody know why, when using ruby-debug by calling debugger in a method called as a before_filter, the params and session hashes are not defined? class MyExampleController < ActionController::Base before_filter :test_hashes def test_hashes pp session pp params #both work as expected.. debugger #calling the ...

System.Diagnostics.StackTrace or System.Diagnostics.StackFrame for debugging ? Why

Is this code: System.Diagnostics.StackFrame stackFrame = new System.Diagnostics.StackFrame(); System.Reflection.MethodBase methodBase = stackFrame.GetMethod(); stackFrame.GetFileName(); stackFrame.GetFileLineNumber(); better for debugging compared to using a System.Diagnostics.StackTrace ...