trace

Java embedded jetty is accepting HTTP TRACE method

六月ゝ 毕业季﹏ 提交于 2019-12-04 10:59:56
I'm trying to disable HTTP TRACE method in embedded Jetty. In Jetty doc's is info that HTTP trace is disabled by default, but for embedded it is still enabled. I was trying to disable trace as a security constraint as is done in jetty.xml. ServletContextHandler servletHandler = new ServletContextHandler(ServletContextHandler.SESSIONS | ServletContextHandler.SECURITY); servletHandler.setClassLoader(Server.class.getClassLoader()); servletHandler.setContextPath("/"); servletHandler.addEventListener(new ContextLoaderListener()); servletHandler.addServlet(new ServletHolder(new CXFServlet()), "/*");

IIS/ASP.net error for failed request tracing: “a failed request trace for this content already exists”

99封情书 提交于 2019-12-04 10:49:48
I am trying to add Failed Request Tracing to my IIS 7/ASP.NET server. First, I create failed request tracing for " all content, error codes 400-999 " because want to save all errors. Then, I try to create a trace for " all content, time: 5 seconds " because I want to trace all "long" requests. However, IIS 7 gives me an error : "A failed request trace for this content already exists". How can I add this second trace for all content that takes > 5 seconds? In your web.config the Failed Request Tracing config looks something like: <tracing> <traceFailedRequests> <add path="*"> <traceAreas> <add

Trace where code is coming from (PHP)

北战南征 提交于 2019-12-04 08:45:34
问题 I'm going through a customer's server, running crazy proprietary forum software (vBulletin) and even worse SEO mods (vbseo). I cannot figure out where the php code for a page is coming from! How to trace this URL back to a PHP page: http://www.example.com/forum/members/connie.html I just joined a project with the code based on a heavily modified vBullitin install with the VBSEO plugin. This particular plugin is horrific spaghetti code with tens of include()s, .htaccess redirects and possibly

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

谁说我不能喝 提交于 2019-12-04 07:38:46
问题 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 would you write the above to trace out the following? roleName = test role_ID = test modal_UD = test related = test instead of roleName = test role_ID = test modal_UD = test related = test I've checked out several other questions which appear similar,

http trace utility

倖福魔咒の 提交于 2019-12-04 06:19:19
问题 I need to trace/sniff http traffic from other machines (for example from my android phone or ios device). In the past I used MSSOAPT (described here http://www.devproconnections.com/article/net-framework2/microsoft-soap-trace-tool) and it was perfect, I need something similar, and now it should have syntax highlighting for json and be able to unzip content :). I would like to tell my android to go to http://my.machine.home/Foo?bar and this proxy should forward this to other server such as

Defining multiple TraceSources not running

风流意气都作罢 提交于 2019-12-04 06:06:16
问题 I'm new with TraceSource so I'm doing some investigation into how it can/ can't be used (basically pros and cons). Something I do like is that I can get dumps from within the .NET framework itself, so I've made a little app to test that and using my own custom source together (as that's how I'd expect it to be used), like so: class Program { static void Main(string[] args) { SmtpClient smtp = new SmtpClient(); var mm = new MailMessage(); mm.To.Add("me@my-site.com"); mm.Subject = "Trace

Does ftrace allow capture of system call arguments to the Linux kernel, or only function names?

无人久伴 提交于 2019-12-04 06:01:55
The goal is to examine arguments passed to specific system calls (e.g. exec, open, etc.) by any process. From the official documentation , no capability to log function arguments is described (looked mostly at the "function" tracer, as I don't need the graph). I wanted to make sure I'm not overlooking something and wasting time using something more exotic if I could actually do this within the framework of ftrace. I have limited experience with ftrace , although I have used it for for function stack traces and latency issues. (People with more experience can possibly suggest) Its pretty much

Does the .Net TraceSource/TraceListener framework have something similar to log4net's Formatters?

蓝咒 提交于 2019-12-04 05:32:33
I've begun to the the built-in TraceSource and TraceListener classes and I would like to modify the output format of the events independently of the TraceSources and TraceListeners. It seems that the TraceListeners apply their own formatting. Is it possible to completely change the formatting without creating a new class for each and every TraceListener I use? The Enterprise Library Logging Application Block ( http://msdn.microsoft.com/en-us/library/cc309506.aspx ) is built on the .Net TraceSource and TraceListener classes (so you can pretty much just drop it into your project and it'll work),

WCF: How do I trace message bodies?

馋奶兔 提交于 2019-12-04 04:32:33
I'm trying to diagnose a WCF service that is self-hosted in a relatively simple service host process (Service.exe). I have Service.exe.config configured thus: <?xml version="1.0" ?> <configuration> <system.diagnostics> <sources> <source name="System.ServiceModel" switchValue="All" propagateActivity="true"> <listeners> <add name="traceListener" type="System.Diagnostics.XmlWriterTraceListener" initializeData= "c:\temp\Service.svclog" /> </listeners> </source> </sources> </system.diagnostics> <system.serviceModel> <diagnostics> <messageLogging maxMessagesToLog="1" maxSizeOfMessageToLog=

The go 1.5 trace command

若如初见. 提交于 2019-12-04 03:33:45
The Go 1.5 release note says, The new "go tool trace" command enables the visualisation of program traces generated by new tracing infrastructure in the runtime. This is really exciting, and I want to know more about it. But its official document at https://golang.org/cmd/trace/ is really dry. Found that Rob Pike complained about it , requesting that "shortly after the 1.5 release, there should be a blog post about the feature." If anyone has posted/spotted such a blog, please add a link here. Or, if you like to answer directly here, it is also welcome as well. Thanks There are two ways you