Questions tagged [trace]

A trace is a log of execution of a process or method.

A trace is a log of execution of a process or method.

It is typically used during debugging in order to provide information to show the actions taken by code.

2716 questions
28
votes
2 answers

Definition of debugging, profiling and tracing

Being new to systematic debugging, I asked myself what these three terms mean: Debugging Profiling Tracing Anyone could provide definitions?
Samuel
  • 4,783
  • 3
  • 29
  • 32
28
votes
6 answers

How to trace code execution in PHP?

I would like to see a log of THE WHOLE code execution of PHP script(s). Something like this: http://en.wikibooks.org/wiki/Ruby_Programming/Standard_Library/Tracer (for lack of better example; no flame please). Is there some way how to obtain the…
MartyIX
  • 27,828
  • 29
  • 136
  • 207
27
votes
9 answers

See trace() of Flash when running in browser

What's an easy way to see the trace() output of Flash/Flex movies when running in any browser?
Robin Rodricks
  • 110,798
  • 141
  • 398
  • 607
27
votes
6 answers

enable linux kernel driver dev_dbg debug messages

is there a simplest possible way to enable linux kernel driver dev_dbg debug messages (actually it's a trace style messages) hopefully without messing up with the kernel patching/recompiling or the driver implementing something extra like debugfs?…
Oleg Kokorin
  • 2,288
  • 2
  • 16
  • 28
27
votes
1 answer

How to use TraceSource across classes

I was recently studying documentation on TraceSource. Microsift says that TraceSource is a new way and should be used instead of old Trace class. // create single TraceSource instance to be used for logging static TraceSource ts = new…
Captain Comic
  • 15,744
  • 43
  • 110
  • 148
26
votes
4 answers

How to debug JAVASCRIPT events? Or how to make all functions call trace?

For example there is a button. It is wrapped by
. When pressing to this button, there is Javascript function call happen, then another function, then calling by ajax to the server and if it's OK, Javascript redirecting this page to another…
gennad
  • 5,335
  • 12
  • 44
  • 47
25
votes
3 answers

How can I stop IISExpress from dumping every detail of every request into the Visual Studio Output window?

My VS 2013 output window is full of this: iisexpress.exe Information: 0 : Request, Method=GET, Url=http://localhost:51741/api/Clients/?$filter=UniqueName eq '6269', Message='http://localhost:51741/api/Clients/?$filter=UniqueName eq…
epalm
  • 4,283
  • 4
  • 43
  • 65
25
votes
1 answer

Trace logs location, where to view them

Where do you see Trace.Write(""); logs while developing an MVC or WCF app? What is the correct place to look at?
DarthVader
  • 52,984
  • 76
  • 209
  • 300
24
votes
2 answers

.NET Tracing: What is the "Default" listener?

Every example of tracing in .NET people remove the "Default" listener:
Ian Boyd
  • 246,734
  • 253
  • 869
  • 1,219
24
votes
6 answers

.NET Trace to a file not working

I am trying to track strange things going on in my Windows Forms application with a TextWriterTraceListener pointed to a file location. I have it set up so that the first time the application needs to trace something during the run of the program,…
Tony Peterson
  • 20,522
  • 15
  • 48
  • 66
24
votes
4 answers

trace python: only include some files

I know that I can use this to trace the command execution: python -m trace -t script.py But I want to reduce the output: Only files which are in my src/ (pip install -e ...) should be shown. How can I do this?
guettli
  • 25,042
  • 81
  • 346
  • 663
23
votes
9 answers

How to trace T-SQL function calls

I'm trying to debug a rather complicated formula evaluator written in T-SQL UDFs (don't ask) that recursively (but indirectly through an intermediate function) calls itself, blah, blah. And, of course, we have a bug. Now, using PRINT statements…
Daren Thomas
  • 67,947
  • 40
  • 154
  • 200
22
votes
3 answers

Any reason why PresentationTraceSources.TraceLevel=High would not print any info to the output window?

I've been trying to get to the bottom of an issue with binding the SelectedItem of my ComboBox, and since I've had no success thus far, I started looking at ways to get more detailed debugging information by setting…
jpierson
  • 16,435
  • 14
  • 105
  • 149
22
votes
2 answers

In SQL Server, how to move/import a multiple .trc files to a trace table

I have a set of rollover .trc files recorded with Sql Profiler. mytrace.trc mytrace_1.trc mytrace_2.trc mytrace_3.trc I can import the first one using this command: use [my-database] SELECT * INTO…
frankadelic
  • 20,543
  • 37
  • 111
  • 164
21
votes
1 answer

how do you control the level of a trace listener in the config file

I'm trying to learn the built-in features of tracing. I can't figure out how to use the config to set the level (information, warn, error) that gets written to my listen. I have the default app.config with it . In my code, I use…
MADCookie
  • 2,596
  • 3
  • 26
  • 46