trace

Trace why a transaction is escalated to DTC

别等时光非礼了梦想. 提交于 2019-12-08 15:07:31
问题 Is there any way to determine precisely why a System.Transaction TrasactionScope is being escalated to the DTC? We are hitting a bump with one of our components that seem to escalate the transaction while all other components (which seem deceptively similar) does not do escalation. Are any information made available on the reasons for the escalation and how can they be found and observed? SQL Profiler? Log files? Or am I out of luck on this one? UPDATE: I'm running against SQL Server 2005 for

Which JVM has a full bytecode execution trace?

六眼飞鱼酱① 提交于 2019-12-08 10:44:34
问题 I need a full bytecode-level execution trace of the entire Java program. I found the JVM TI with the SingleStep event which allosw me to WRITE an agent which will produce the trace. But surely there is a ready-made JVM option somewhere? 回答1: Use a debug build of the Hotspot JVM and run it with the -XX:+TraceBytecodes flag. See Trace java bytecode stream for how to build this debug JVM. 回答2: A full Java bytecode trace? That sounds incredibly slow. HotSpot does not support this functionality

AS3 - Trace - Click button

吃可爱长大的小学妹 提交于 2019-12-08 06:35:43
问题 I am trying to click on a button and trace out a number "1" onto the stage/same scene. I have this code: button1.addEventListener(MouseEvent.CLICK, myClickReaction1); function myClickReaction1 (e:MouseEvent):void{ trace("1"); } BUT it traces onto the output of flash and not onto the scene. please help thanks 回答1: trace("1"); will go to the output panel it is intended for debugging. If you want to see something on the stage, you will need to create a TextField and set it's text property to

tool to trace application without code changes?

白昼怎懂夜的黑 提交于 2019-12-08 06:09:12
问题 I've inherited a rather large WPF application, and I need to generate application traces for a significant portion of it. Because of the complexity of the project, I'd like to do this without making any changes to the code base, if possible. I mostly need to know the stack deltas, ie when a function call or return takes place. Is there a tool or methodology that will get me this trace with (preferably) no code changes? Is this even possible to do without writing a tool to add Trace calls to

Trace functions that are called on Python strings

一个人想着一个人 提交于 2019-12-08 05:37:55
问题 Is it possible in Python to trace and filter functions that are called on strings during program run? I want to add sys.setdefaultencoding("utf-8") application, and I want to set some guards to predict potential problems with misusing standard functions (like len , for example), to process such strings. 回答1: You can replace the builtin: import __builtin__ real_len = __builtin__.len def checked_len(s): ... do extra checks ... return real_len(s) __builtin__.len = checked_len 来源: https:/

Tracing stdout and stderr in Tcl

我们两清 提交于 2019-12-08 05:36:24
问题 I'm not sure if this absurd. Isn't it possible to trace the read and write of stdout and stderr in Tcl? I have tried the below and found no clue. % proc tracer {varname args} { upvar #0 $varname var puts "$varname value : $var" } % trace add variable stdout read tracer % trace add variable stdout write tracer % puts stdout hai hai % puts hai hai % trace add variable stderr write tracer % trace add variable stderr read tracer % puts hai hai % puts stderr hai hai As per the man page of puts ,

Linux kernel's ftrace output format

Deadly 提交于 2019-12-08 03:52:31
问题 I'm using ftrace on Android on a couple of different devices, but I noticed that the output format differs between them. In some cases, the TGID of the current process is included, while in others, it is not. The TGID is very useful in the current application I'm using ftrace on, and I'm wondering how I could enable that. I'm aware of the sysfs file "/sys/kernel/debug/tracing/options/print-tgid", but this isn't available on my devices, unfortunately. Are there any kernel options or ftrace

IIS 500 Error WCF Service and Failed Request Tracing not info

久未见 提交于 2019-12-08 03:30:56
问题 I have a WCF service running in IIS 8.5 on Windows Server 2012 R2 with AppPool Integrated. I open url in the server: http://localhost:50123/MyService.svc I have HTTP 500 Internal Server Error . (IExplorer cannot show the page) I have not found the problem in Event logs, IIS Logs. I apply this steps: https://peter.hahndorf.eu/blog/iislogging.html Disable IE “Friendly HTTP error messages” <customErrors mode=”Off” /> <httpErrors errorMode="Detailed" /> <serviceMetadata httpGetEnabled="true"/>

golang, ebpf and functions duration

一世执手 提交于 2019-12-08 02:01:05
问题 I'm playing with gobpf and have got an issue with calculating a duration of traced user-space function. I use bpf_ktime_get_ns() to read time and then trying to calculate delta, but got enormous numbers, though traced function sleeps just 1 second. Here is the tested C-program, which has a function called "ameba". #include <stdio.h> #include <strings.h> #include <stdlib.h> #include <time.h> #include <unistd.h> char * ameba(char * s1, char * s2); int main(void) { time_t rawtime; struct tm *

Python's trace module and filepaths

佐手、 提交于 2019-12-08 01:34:45
问题 I am using python's trace module to trace the execution of some code. I notice that when the execution is later printed, it is printed in the following form (min working example follows below): <filename>(<line number>): <line of code> Is possible to get the full (either absolute or relative) file path instead of just the file name. It makes sense that there would be a flag somewhere in the call to trace.Trace that should allow me to do this, but I don't seem to be able to find any such