trace

Compile Flex application without debug? Optimisation options for flex compiler?

I have created a simple test application with the following code var i : int; for (i=0; i<3000000; i++){ trace(i); } When I run the application, it's very slow to load, which means the "trace" is running. I check the flash player by right-clicking, the debugger option is not enable. So I wonder if there is an option to put in com...

Overriding System.Diagnostics.Trace.WriteLine to log to a file

This may be more of an OOP concept question, but here's what I'd like to do. I have an application that outputs debug information using System.Diagnostics.Trace.WriteLine so it can be viewed with DebugView. I'd like to override/extend (not sure of the proper terminology) this method to log the text to a file instead, or maybe in additi...

Finalizing a custom TraceListener with autoflush='false' (C#, .net)

I'm writing a custom tracelistener to write trace messages to a file adding rotation (for example changing the file name each day). In the override of the Flush method, I call Flush on the underlying StreamWriter, but if I set autoflush='false' in the application configuration, Flush does not get called when the application is terminated...

Low-overhead I/O monitoring on Windows

I would like a low-overhead method of monitoring the I/O of a Windows process. I got several useful answers to http://stackoverflow.com/questions/864839/monitoring-certain-system-calls-done-by-a-process. The most promising was about using Windows Performance Toolkit to get a kernel event trace. All necessary information can indeed be pu...

Use ISAPI filter to trace and time a WCF call?

I'm building a web application using WCF that will be consumed by other applications as a service. Our app will be installed on a farm of web services and load balanced for scalability purposes. Occasionally we run into problems specific to one web server and we'd like to be able to determine from the response which web server the reques...

Flash 10 Debugger flashlog.txt

Hi, I have installed the Adobe Flash Player 10 debugger for Firefox 3 and I am unable to locate the flashlog.txt file or use the debugger features online, other than to show redraw regions. I have installed the FireFox extension "Flash Tracer" which in theory is compatible with my firefox version, and am now trying to make it work. I ca...

How to use preprocessor to compute and store hashes at compile time?

I have a native C++ program that uses "event queues" to execute functions on different threads. I allocate an "event" class on the heap, and put it on one of my threads' queues for execution. It all works great, but it's very difficult to trace back the origin of these "events". I would like each "event" to store some information pertai...

sharepoint logging/trace

how can i perform logging in sharepoint. i want to use tracing. so that it logs in the 12 hive logs. ...

Is there a way to dump a stack trace without throwing an exception in java?

I am thinking of creating a debug tool for my Java application. I am wondering if it is possible to get a stack trace, just like Exception.printStackTrace() but without actually throwing an exception? My goal is to in any given method, dump a stack to see who the method caller is. Any replies or thoughts concerning this would be reall...

.NET Single Line Logging (ala Trace.Write/WriteLine) using Instrumentation.Logging

Hello Everyone, My question is whether it is possible to get line/multiline (very unsure of correct term for this) behaviour of the Trace.Write and Trace.WriteLine methods but using the Microsoft Instrumentation Logging framework in .NET 2.0. Desired Output Hello World! Oh Hai. What I Currently Have Trace.Write("Hello "); Trace.Wri...

Trace Filtering

How do I go about using filtering on the built in trace listeners, such as System.Diagnostics.DefaultTraceListener and System.Diagnostics.TextWriterTraceListener? I don't want to have to override write methods and explicitly check the filtering, but I can find no way to attach a level to trace information? ...

traceview used with webapplication

Hi, Has anybody been able to view Trace messages from webapplication in TraceView? I am using System.Diagnostincs.Trace.Write .... but no matter what filter i choose in TraceView i cann't see any message... (Compiled in debug mode, both TRACE and DEBUG enabled) Thanks! ...

Linux: How to debug a SIGSEGV? How do I trace the error source?

Hello! My firefox started crashing since today. I haven't changed anything on the system or on firefox config. I use strace -ff -o dumpfile.txt firefox to trace the problem. It's not a big help. I see the segfault, in two of the generated process dumps, but how I can trace them to their cause? After running for 10 seconds and crashin...

Tracing a content page not working

both pages just have a simple label: setting Trace="true" on the Page directive of a Content page does nothing. setting Trace="true" on the Page directive of a regular page works. setting the app wide Trace to true in web.config also does nothing to the Content page. The Master directive doesn't have a Trace attribute either. Any way ...

System.Net (HttpWebRequest) tracing without using files or app.config?

I want to capture certain, but not all, HttpWebRequest traffic in my application for debugging purposes. It's a web service hosted by IIS. I have read How to: Configure Network Tracing. This works great, but I don't want to direct the trace to a file, due to possible permission problems on the file system, data sensitivity, etc. I wo...

Is the WCF Service Trace Viewer tool indispensable?

Do I need to learn the WCF Service trace viewer tool? I understand I can use the WCF Service Trace Viewer tool to trace messages leaving from clients, or arriving at servers. Can I configure WCF tracing to record REST messages as well as SOAP? Are there other neat tricks I can do? I've developed with WCF for a long while but I've n...

Disabling TRACE request method on Apache/2.0.52

By default, Apache 2.0.52 will respond to any HTTP TRACE request that it receives. This is a potential security problem because it can allow certain types of XSS attacks. For details, see http://www.apacheweek.com/issues/03-01-24#news I am trying to disable TRACE requests by following the instructions shown in the page linked to above. ...

How can I generate a complete trace.axd in ASP.NET MVC?

On my application, after enabling ASP.NET Tracing in an ASP.NET MVC application, the time calculation statistics were off by a factor of 5000. I have a page that is taking between 7 and 9 seconds to load. This is corroborated by both Firebug and the "time-taken" field in the IIS log files. (This is just the page returning to the client,...

Debugging a JLink application in Pro-Engineer

I'm trying to use J-Link, the Java language toolkit for Pro-Engineer. I haven't yet found a way to debug or trace through J-Link applications, something that I need to do to understand the sample applications. The manual recommends attaching a debugger to the the process that was started by Pro-Engineer, which doesn't seem to be workin...

Oracle: tracing SQL statements

I'm maintaining an home-brew web-based help-desk solution and we are experiencing an erroneous change in a db field under some circumstances. The code involved is quite frankly a mess, mixing different approaches to database access (the worst and most dangerous one being building sql strings through concatenation). A full-text search of ...