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
1
vote
1 answer

Linux/C: how to trace the accesses on a number of variables

I'm trying to profile some existing C code that uses large structs with many members, with the goal of refactoring it into a smaller cache-friendly core struct containing the most frequently-accessed members and a pointer to the colder data. I want…
gimmeamilk
  • 2,016
  • 5
  • 24
  • 36
1
vote
1 answer

Check SQL trace log

Following the recommendation of this tutorial, I have added the following public BookServiceContext() : base("name=BookServiceContext") { // Keeps track of SQL queries that EF generates this.Database.Log = s =>…
U r s u s
  • 6,680
  • 12
  • 50
  • 88
1
vote
1 answer

How can we trace all inner stored procedures execution from a stored procedure

I have a big one stored procedure inside that I have called to many other SPs and functions, even such inside SPs may also have calling to some another SPs. So what my question is can I trace all such SPs execution in a way it actual get…
1
vote
1 answer

Configure trace for SpringServer dm 2

According to the Spring documentation, By default, the dm Server trace file is called $SERVER_HOME/serviceability/logs/dm-server/log_i.log ... The index i varies from 1 to 4, on a rolling basis, as each log file exceeds 10Mb. I'm aware…
Eric J.
  • 147,927
  • 63
  • 340
  • 553
1
vote
1 answer

Debugging Eclipse performance problems

To debug Eclipse performance problems, I created this .options file: org.eclipse.jdt.ui/debug=true org.eclipse.jdt.launching/debug = true org.eclipse.jdt.launching/debug/classpath/jreContainer = true # trace generation of type constraints and…
Aaron Digulla
  • 321,842
  • 108
  • 597
  • 820
1
vote
1 answer

AS3 - How do I trace/list data/value in dataprovider?

I have a Provider with the following data: DP.addItem({Vare:"Casual Item", Size, Type:"", Color:TColor, Amount:AmountT, Price:AmountT*79}); I have made a shopping cart (School project) and after I buy a few items, the data above gets put in a…
1
vote
4 answers

Coded UI: Not able to capture a screen shot for pass test case

I am using coded UI platform for automation. If test case fails system automatic take screen shot but once it pass system is not able to capture screenshot of the test case. I am using C# selenium commands in the script. Environment Visual studio…
Niraj
  • 53
  • 1
  • 9
1
vote
1 answer

What is the use of java trace in the jar file?

When I export a JAR file, I noticed that it has .java._trace files in it. What is the purpose of this file? Is there a setting in eclipse that will allow me to disable this file so that it will not be included in the JAR file?
chris yo
  • 1,187
  • 4
  • 13
  • 30
1
vote
1 answer

"The type TraceWriter must derive from ITraceWriter" after upgrading to Web API 2

We have a custom Web API ITraceWriter implementation named TraceWriter, registered as a service in the usual way in Application_Start. After upgrading the Web API project to Web API 2, an HttpException is thrown in Application_Start: The type…
1
vote
0 answers

How to save the entire JSON payload in a WCF Web Service?

I have a WCF web service running under IIS with WebHttpBinding. It talks JSON. A sample method looks like this: public OrderResponse Save(OrderRequest request) ... So I am assuming that ASP.NET converts the JSON message into the OrderRequest…
AngryHacker
  • 59,598
  • 102
  • 325
  • 594
1
vote
0 answers

Call generic WriteLine method: TestContext, Console, Trace

I use WriteLine method for logging, tracing, diagnostics using in my code: Unit test using TestContext namespace Microsoft.VisualStudio.TestTools.UnitTesting public abstract class TestContext public abstract void WriteLine(string…
1
vote
1 answer

How can I use the same callback function to trace multiple variables?

I would like to display the value of several StringVar() with some formatting on Labels. import tkinter as tk keys = range(2) # 2 for simplicity root = tk.Tk() myVars = {key: tk.StringVar() for key in range(5)} myStrVars = {key: tk.StringVar() for…
izxle
  • 386
  • 1
  • 3
  • 19
1
vote
1 answer

How can I replicate the functionality of sp_trace with extended events from C#?

I am working on a C# application which uses the various sp_trace procedures to view events from a remote SQL Server database. The particular events I'm most interested in are when queries and stored procedures start and finish. I need data for each…
ChaseMedallion
  • 20,860
  • 17
  • 88
  • 152
1
vote
1 answer

Midje print stacktrace when test fails

I am learning Clojure, and trying to use TDD to do so *. I use midje as a testing library. Love it so far, the expected versus actual results display is very helpfull. But is there was a way to use clojure.tools.trace or something similar to print…
nha
  • 17,623
  • 13
  • 87
  • 133
1
vote
2 answers

How do you programatically set the source switch with System.Diagnostics

I have a situation where I need to capture the trace from System.Workflow.Activities.Rules. Currently I have a custom trace listner configurered like so in code: _traceListener = new InMemoryTraceListener(); …
Phil Carson
  • 884
  • 8
  • 18