debugging

Finding Errant Output to System.out in Large Java Program

Hi, We have a large java code base [~1 M Lines]. Buried (somewhere) in the code base is some old debug output to System.out that we want to remove (its cluttering things up). The problem is: out code base is so large that we can't easily find where the output is coming from. What we want is a way to see where System.out.println is g...

Visual Studio Plug-in that can tell the Application Pool name of w3wp.exe when debugging

Is there any plug-in for Visual Studio that can display the associated Application Pool name for those w3wp processes when debugging them with "Attach to Process..." ? Usually I have to do following steps before debugging: c:> \Windows\system32\inetsrv\appcmd list wps then I get the process id for the Application Pool I want to debug,...

Filename of script that instantiates an object

In PHP, is it possible to get the file name of the script that instantiated an object? For example I have a script called file.php that creates a new instance of class Class. The class has an Error object that, when triggered, returns some error information. I would like to show that file.php triggered the error. ...

how to print std::map value in gdb

Hi all I have a std::map< std::string, std::string> cont; I want to see cont[ "some_key" ] in gdb. When I'm trying p cont[ "some_ket" ] I'm getting this message: One of the arguments you tried to pass to operator[] could not be converted to what the function wants. I'm using GNU gdb Red Hat Linux (6.3.0.0-1.162.el4rh). Thanks ...

Debugging my Maven2 plugin in Eclipse

I've written a plugin for Maven2 in Eclipse. How can I run the plugin in debug mode in Eclipse? If possible, I'd like to avoid remote debugging an external process and I'd also like to avoid installing plugins into Eclipse. ...

How to detect segmentation fault details using Valgrind?

Hi all I have a std::map< std::string, std::string> which initialized with some API call. When I'm trying to use this map I'm getting segmentation fault. How can I detect invalid code or what is invalid or any detail which can help me to fix problem? Code looks like this: std::map< std::string, std::string> cont; some_func( cont ); //...

Flush SQL Management Studio Message Buffer

When I use PRINT statements to debug and monitor long running queries in SQL Server Management Studio, I notice that the output does not appear in the Messages tab right away. Is there a way to flush output to the message tab, or to set up the environment so that it doesn't buffer messages? ...

Debugging a local SQL Server 2008 stored proceedure from Visual studio 2008

Hi all, There are a few posts about this question around but most concern remote debugging - here everything is on same machine. Visual studio 2008. I have a data connection to localhost SQL Server 2008 using Windows authentication with an admin account - this account is a member of sysadmin in SQL server. I double click stored proc an...

debugging a resource leak in a printer driver

I'm trying to debug a memory leak in a printer driver. I'm pretty sure it's a resource leak, not just a plain memory leak because analyzing heap with !heap -s in windbg doesn't show any increase. How do I monitor other kinds of objects with windbg? Number of GDI objects and open handles is not growing either, so what could it be? The...

When debugging in Visual Studio and you want to step into a procedure

When debugging in Visual Studio and you want to step into a procedure for example, but you dont want to step into the parameter methods. Is there a way to do this? var a = StepIntoSomething(getSomeValueDontStepIn(1),getSomeValueDontStepIn(2)); ...

in visual studio 2008, when I stop debugging an asp classic website visual studio always crashes

We are running visual studio 2008 (with the service pack) and having troubles when we are debugging an asp classic website. The server is windows 2003 sp2. We are using windows authentication. We have a virtual directory that is an asp.net web application. We can attach to the w3p process and debug just fine. breakpoints work, we ca...

Inspecting methods in IDEs - why aren't there side effects?

Some IDEs (like Eclipse) seem to allow method calls to be inspected while debugging. How is this done without causing side effects? ...

In VB 6 debug mode, problem with dll

my vb6 app is not finding a dll that is residing in the same directory as the project. What do I do to have the vb6 code see the dll? When compiled to an exe, the code sees the dll if it is in the same dir as the exe. Thanks! ...

data breakpoints in avr studio

I want to set data breakpoint for TCNT1 register of ATMega16 in AVR Studio 4.17 Build 666. I add breakpoint by specifing in the Location field of "Add data breakpoint" window the value IO@0x2C. But breakpoint seems not work. Can some one help me how to setup a data breakpoint for an IO reginster? ...

Monodevelop 2.2 on OSX - Debugging disabled

According to the feature matrix of Monodevelop 2.2, debugging should be available on OSX if one installs Mono 2.6.3. I've done this on two of my Macs, but can't seem to get the Debug menuitem enabled - it stays disabled. The project type I'm trying to debug is a Moonlight project, and according to the preferences in Monodevelop, the Moon...

VisualStudio2010 Debugging - The process cannot access the file ... because it is being used by another process.

I'm unable to debug a WinForms C# application using the released version of Visual Studio 2010 Prof. I get the following error message after the second debugging run. Error 9 Unable to copy file "obj\x86\Debug\Arrowgrass Reports.exe" to "bin\Debug\Arrowgrass Reports.exe". The process cannot access the file 'bin\Debug\Arrowgrass Repo...

NSMutableArray of Objects misbehaves ...

I hope someone understands what happens to my NSMutableArray. I read records a, b, c, d from a database, load the fields into an object an add the object to an array. To do this I read the records into an instance of that object (tmpEvent) and add the Object to the target array (NSMutableArray myArray). the code looks like: for (condi...

Can I use DDD3.3.12 with GDB7.1?

Can I use ddd3.3.12 with gdb7.1? ...

How to use sum and count functions

hi guys I am trying to get the total count and total sum per salesperson but its not working in my WITH query Currently I have: WITH CALC1 AS ( SELECT B.OTSMAN AS SALESMAN, COUNT(B.ONINUM) AS COUNT, SUM(B.OVSVAL) AS SVAL FROM @[email protected] AS B WHERE B.OCSGRP <> 'INT' AND B.OCSGRP <> 'INX' AND B.OCPSB...

Why is visual studio not aware that an integer's value is changing? (debugging)

I have a few simple lines of code (below). [bp] indicates a breakpoint. for(int i=0;i<300;i++){} int i=0; cout<<i; [bp] for (i=0;i<200;i++){} When I debug this in visual studio, it tells me that i is equal to 300 on the breakpoint. Annoyingly, 0 is printed to the console. Is there any way to make it realize that two var...