trace

How to customize Visual Studio Console Debug window?

I'm curious if anyone has figured out how to create their own Debug Output window in Visual Studio. For applications without a real console window (e.g. web apps), writing Debug or Trace messages end up in the Debug output window along with every other message (including overly verbose DLL loading messages). It would be great if we coul...

PHP: Understanding code via function or file tracing (without XDebug)

I have inherited a moderately large PHP codebase. In order to better understand how it works, I'd like to be able to print to logs a function or file trace whenever I hit a page, so I can correlate pages with source code. Are there any tools I can install? I have root on the server, and so have the ability to install anything as far a...

How to use TRACE with ascii under unicode MFC environment?

I am developing a MFC program under windows CE. It is unicode by default. I can use TRACE to print some message like this TRACE(TEXT("Hey! we got a problem!\n")); It works fine if everything is unicode. But however, I got some ascii string to print. For example: // open the serial port m_Context = CreateFile(TEXT("COM1:"), ...); int ...

Call Tracing Windows Driver

I wish to be able to record, in real time, the activity of a kernel mode driver (I have the full symbols for it). It's a HID miniclass driver. I wish to record the execution of calls in this driver (stacktraces every time an IRP enters and leaves the driver). Is this possible (maybe with EWT and/or WPT)? ...

Trace output not getting logged in output file at times.

I'm using TextWriterTraceListener to log error messages to a text file.The TraceOutputFile has been mentioned in the web.config file as "trace.log.txt". The error messages are getting logged to the trace.log.txt. But at times I notice that some files are getting generated randomly under root folder with the exception details instead of l...

Is there a way to do on demand flushing of WCF trace?

Just like there is a command to flush IIS7 logs: netsh http flush logbuffer I'm wondering is there a similar command to flush WCF trace log on demand. ...

How to implement objects modification trace

Hi there, With django admin, we have an history of who altered an object and when. I would like to add an "old value", "new value" to this to be able to roll back if needed. Plus I would like every modification made to my objects (also outside of admin) to be recorded as well. The final objective is to be able to trace every modificat...

how to instantiate C# TraceSources to log (multithreaded) ASP.NET 2.0 Web application (asmx ws)?

None of the examples on TraceSource I found addresses multithreading. I create new instance of a class (SyncService) to serve a incoming request. When there is lots of activity there is multiple threads that need to use this TraceSource to log activities. How should I use this class for logging with performance and thread safety in mind?...

Programme execution animation for teaching purposes

Does there exist an interpreter which shows execution animation for teaching purposes? I use the Jackson Structured Method for explaining 3rd generation programming languages. I am thinking about a text or graphical full screen display showing the "computers inside": allocation and usage of the variables while executing one instruction a...

WCF Tracing. How I can get the exact reason for closing connection?

In my WCF service, when trying transfer large data I constantly get an error: *The underlying connection was closed: The connection was closed unexpectedly* I want to know what particular reason invokes this error, so I set up WCF Tracing and can read traces.svclog file. The problem is, that I can see in this file a lot of information ...

Using trace and dbg in Erlang

I am trying to start using erlang:trace/3 and the dbg module to trace the behaviour of a live production system without taking the server down. The documentation is opaque (to put it mildly) and there don't appear to be any useful tutorials online. What I spent all day trying to do was capture what was happening in a particular functio...

How system.diagnostics trace affects .net performance?

When I enable trace, e.g.: How badly this affects application performance? ...

How can I monitor the SQL commands send over my ADO connection?

i need intercept all the SQL commands that pass between an ADO connection component and a database server. something like the TSQLmonitor of dbExpress, but for ADO . Anybody know any third-party component that implements this functionality? UPDATE I want to do is to monitor the SQL statements programmatically (by code) from my appli...

Getting Android Traceview to work

When I try to run traceview I get: 'java' is not recognized as an internal or external command, operable program or batch file. SWT folder '' does not exist. Please set ANDROID_SWT to point to the folder containing swt.jar for your platfo rm. I can't figure out how it get it working. Does anyone know? ...

Why is my ASP.NET web form Load event taking so long?

I have an ASP.NET 2.0 web form that is taking almost 30 seconds to load. I am trying to figure out what is going on. I have enabled tracing and put in a whole bunch of Trace.Write statements so I can hopefully see what is going on. The results are very strange. They look like this... aspx.page Begin Load 0.000245093984962406 MyEven...

How to trace sql commands for a specific connection to db2?

I am in the process of setting up a central build server. The server is responsible to produce the official build artifacts that will be deployed to all environment. For one of the applications there is an build step that writes to a database. At deploy time we would need to run this build step to the appropriate environment. Since it is...

How to trace code execution in C#

Hi, how can I trace code execution of my C# application? Are there any tools available. Please Help. I have an issue in my production site. Thanks in Advance ...

[Linux] Tracing pthread scheduling

Hi, What I want to do is create some kind of graph detailing the execution of (two) threads in Linux. I don't need to see what the threads do, just when they are scheduled and for how long, a time line basically. I've spend the last few hours searching the internet for a way to trace the scheduling of pthreads. Unfortunately, the two p...

Can ETW events be used to trace perf problems?

How about it's latency? I mean how much time it will cost for one trace message? Is it in milliseconds level? ...

Android trace file created but zero bytes long

I am trying to follow the instructions on this page to create a trace file. I can see the file in File Explorer in DDMS and can pull it onto my PC but it is zero bytes long. Any suggestions as to what I might be doing wrong, please? ...