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
1254
votes
16 answers

How to echo shell commands as they are executed

In a shell script, how do I echo all shell commands called and expand any variable names? For example, given the following line: ls $DIRNAME I would like the script to run the command and display the following ls /full/path/to/some/dir The purpose…
Jack Nock
  • 14,703
  • 5
  • 22
  • 18
323
votes
10 answers

Logging best practices

I'd like to get stories on how people are handling tracing and logging in real applications. Here are some questions that might help to explain your answer. Frameworks What frameworks do you…
Paul Stovell
  • 32,377
  • 16
  • 80
  • 108
235
votes
10 answers

How can I debug git/git-shell related problems?

How can I have some debug information regarding git/git-shell? I had a problem, that user1 could clone a repository without problem, while user2 could clone only an empty one. I had set GIT_TRACE=1, but nothing useful was told. Finally, after a…
Andor
  • 5,523
  • 5
  • 26
  • 24
123
votes
2 answers

How can I add (simple) tracing in C#?

I want to introduce some tracing to a C# application I am writing. Sadly, I can never really remember how it works and would like a tutorial with reference qualities to check up on every now and then. It should include: App.config / Web.config…
Daren Thomas
  • 67,947
  • 40
  • 154
  • 200
117
votes
8 answers

When tracing out variables in the console, How to create a new line?

So I'm trying to do something simple, I want to break up my traces in the console into several lines, using 1 console.log statement: console.log('roleName = '+roleName+' role_ID = '+role_ID+' modal_ID = '+modal_ID+\n+'related = '+related); How…
Leon Gaban
  • 36,509
  • 115
  • 332
  • 529
75
votes
3 answers

Redirect Trace output to Console

Let's say I'm working on a little batch-processing console app in VB.Net. I want to be able to structure the app like this: Sub WorkerMethod() 'Do some work Trace.WriteLine("Work progress") 'Do more work Trace.WriteLine("Another…
Joel Coehoorn
  • 399,467
  • 113
  • 570
  • 794
72
votes
4 answers

How to use trace and dbg in Erlang to debug and trace my program?

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…
Gordon Guthrie
  • 6,252
  • 2
  • 27
  • 52
71
votes
5 answers

log4net versus TraceSource

In this thread many people have indicated that they use log4net. I am a fan of TraceSources and would like to know why log4net is used. Here is why I like trace sources: Pluggable listeners - XML, TextFile, Console, EventLog, roll your…
Paul Stovell
  • 32,377
  • 16
  • 80
  • 108
66
votes
13 answers

Tool to trace local function calls in Linux

I am looking for a tool like ltrace or strace that can trace locally defined functions in an executable. ltrace only traces dynamic library calls and strace only traces system calls. For example, given the following C program: #include…
Robert Gamble
  • 106,424
  • 25
  • 145
  • 137
66
votes
2 answers

How to define custom TraceListener in app.config

I have implemented a custom trace listener (derived from TextWriteTraceListener) and now I would like to set my application to use it instead of standard TextWriteTraceListener. First I added default TextWriteTraceListener in order to make sure it…
RaYell
  • 69,610
  • 20
  • 126
  • 152
63
votes
6 answers

How to "debug" Haskell with printfs?

coming from the Ocaml community, I'm trying to learn a bit of Haskell. The transition goes quite well but I'm a bit confused with debugging. I used to put (lots of) "printf" in my ocaml code, to inspect some intermediate values, or as flag to see…
Vinz
  • 5,997
  • 1
  • 31
  • 52
62
votes
4 answers

What is the difference between Tracing and Logging?

From the terminology point of view and in general, what is the difference between a tracing and a logging ? Thanks!
pencilCake
  • 51,323
  • 85
  • 226
  • 363
57
votes
3 answers

Trace Python imports

My Python library just changed it's main module name from foo.bar to foobar. For backward compat, foo.bar still exists, but importing it raises a few warnings. Now, it seems some example program still imports from the old module, but not…
Fred Foo
  • 355,277
  • 75
  • 744
  • 836
51
votes
7 answers

Tracing versus Logging and how does log4net fit in?

I am wondering about what the difference between logging and tracing is. Is the difference basically that tracing is more detailed log giving developers a tool to debug applications at runtime? I have been experimenting with log4net and doing…
Xerx
  • 3,755
  • 8
  • 32
  • 28
46
votes
3 answers

How do I enable Failed Request Tracing in IIS 10.0 on Windows 10 development PC?

How to I enable Failed Request Tracing in IIS 10.0 on my Windows 10 dev pc? I can find instructions for IIS7 and IIS8.5 (see http://www.iis.net/learn/troubleshoot/using-failed-request-tracing/troubleshooting-failed-requests-using-tracing-in-iis-85)…
user1651370
  • 863
  • 1
  • 8
  • 15
1
2 3
99 100