debugging

is there a way to know why php mail function returns false (it happens 'sometimes')

I'm calling php function mail, but it's returning false about 5% - 10% of the times, and it's driving me crazy. I guess from the php side everything is well configured because (correct me if i'm wrong) if not the function should fail every single time. So the question is how can i know the reason of this behavior? What can i do to debu...

symbol issue when debugging C# code

Hello everyone, I am using Windbg to load a crash dump from managed code (C#, a console application built for Any CPU), and crash dump is created on x64 platform. I am debugging on x64 platform. I have put the related pdb file into symbol path. But Windbg always find the symbol from a strange folder, here is an example (when I got from ...

private symbol loaded but no line number displayed?

Hello everyone, I am using Windbg to load a crash dump from managed code (C#, a console application built for Any CPU), and crash dump is created on x64 platform. I am debugging on x64 platform. I have using the following command to load private symbol of my application. Here are what the commands I am using in Windbg. (set symbol pat...

Trace all method calls in ASP.NET application

I need to trace all method calls in an ASP.NET application for a period of time, say 24 hours, into a log file. Looking for tools that allows me to do this? I'm interested in in getting something like this out: 2009-10-12T13:00:41 MyClass.MyMethod("arg1.toString()", "arg2.toString()") ... other nested calls inside this method ... 2009...

how to debug a NHibernate mapping?

I use NHibernate (2.0.1GA) with my project. At runtime I get the Invalid Cast (check your mapping for property type mismatches); [...] So it only says its unable to cast something. Thats a bit unprecise imho. My mapping file is pretty big (master table with about 50 colums plus 11 subsets). How do I find the invalid cast without ch...

Are there any function level debugging/logging tools for Java?

I'm sorry if the title is confusing but I couldn't think of anything similar to call it. What I'm looking for is if there is any sort of tool (or eclipse plugin, etc) that will log all the translated lines from a program. For example: int b = 20; for (int x = 0; x < z; x++) b = b + 5; Would get translated into b = 20 for (int x = 0;...

Simulate lack of system resources on Linux machine

Can someone recommend a utility to simulate a resource constraint on a Linux system. I need to test performance of the system under stress - both memory and CPU. I would need something that would allocate an amount of memory, therefore leaving less for the program I am testing. And also would use up all available CPU. I am preferring...

Stepping into a P/Invoke call in disassemby view

My C# code is calling an unmanaged third-party library function via P/Invoke, and the unmanaged function is having some strange side effects. I want to debug into it and see what it's doing. If I debug my C# code, and try to "Step Into" the P/Invoke call, it steps over instead. No surprise there -- I expected that; it doesn't have the s...

CDT 6 (eclipse galileo) snow leopard debugging issue

I upgrade to snow leopard and xcode 3.2 this week, and since that I'm having problems with CDT. I tryed this in CDT 5 (ganymede) and CDT 6 (galileo). If I try to debug the application using launcher "Standard Create Process Launcher", it delays about 10 seconds to actually get in the debugging breakpoint, which is very odd. If I use as...

diassemble managed code issue

Hello everyone, I am using Windbg to diassemble managed code (written in C#, console application) using Windbg's !U command from sos.dll. I find when using !U to diassemble a managed function, the diassembled IL code only contains function calls I made, and for remaining parts (non-function call C# code), for example a=a*2, and foreach ...

Variable not in scope

When I use QtCreator debugger, it shows local variable as "not in scope". What causes such situations? ...

Interpreting Java crash files

I have a Swing application that is heavy customised with a lot of custom painting mainly on the panels and button to add gradients and round borders. The application infrequently crashes with exactly the same error and i get hs_err_pid[0000].log Snippet: Java Threads: ( => current thread ) 0x032ff400 JavaThread "Thread-1" daemon [_t...

Running Visual Studio console application in debug mode consumes no more than 50 percent cpu usage

I have a several C# console applications that basically parse tons of data in memory (LINQ) and output the results to a text file. Now, forget about the writing to the text file for a minute because this is not where the problem is occurring. When I run the application in debug mode, I will never get it to utilize more than 50% of cpu ...

Visual Studio Creating Debug File In Release Mode

I asked a similar question a while ago http://stackoverflow.com/questions/1477582/error-creating-debug-information-code-wont-compile but never found a solution. That problem seems to have evolved a bit. Now Visual Studio is creating a PDB debug file even when the application is in Release mode and debugging is turned off in Web.config. ...

Java JVMTI doesn't work alongside -Xdebug -Xrunjdwp

I spent the last 4 hours trying to set up Eclipse TPTP memory profiling on a Tomcat instance that must be run remotely (i.e. not in Eclipse). This should be possible according to the TPTP and Agent Controller docs. I installed the TPTP components (4.6.0) into my Eclipse (Galileo) workbench, along with the Agent Controller according to ...

recording call stack in Visual Studio

Hi, I'm trying to debug a really large c++/c program in Visual Studio. Changing value of one parameter changes the result dramatically. I want to record a call stacks for both runs and diff them. Does anybody know how to dump a call stack to a file in VS without setting breakpoints and using Select ALL/Copy in the window? Thanks. ...

.NET Framework symbols and source files out of sync?

It seems that my .NET Framework debug symbols and their corresponding source files are out of sync. Here is an example. I’m trying to step in to ASP.NET MVC from a view. So I set a breakpoint on a function in ASP.NET MVC (using a function name). When Visual Studio stops there, it’s actually in the correct function, but the yellow highli...

In which scenario it is useful to use Disassembly language while debugging

Hi I have following basic questions : When we should involve disassembly in debugging How to interpret disassembly, For example below what does each segment stands for 00637CE3 8B 55 08 mov edx,dword ptr [arItem] 00637CE6 52 push edx 00637CE7 6A 00 push 0...

Sniffer for localhost (Windows OS)

I am looking for a sniffer that can work with the loopback address in Windows. So far, I found Microsoft Network Monitor which is a nice tool, but for localhost it's useless because on Windows, localhost packets don't pass through the regular network stack, so they're invisible to an ethernet sniffer like MS Network Monitor. How do you...

ASP.Net Enabling Trace in Code Behind

I'm looking for a way to enable trace for an ASP.Net page via codebehind without using the page or webconfig methods. My end goal is to have a page that reacts to a querystring element such as ?trace=true then show the tracing information, but prior to that the page would display normally. I've done some googling and my combination of ...