trace

Consuming “Event Tracing for Windows” events

天大地大妈咪最大 提交于 2019-12-20 09:25:38
问题 An answer to this question has led me to look into using "Event Tracing for Windows" for our tracing needs. I have come across NTrace, which seems to be a good way to produce ETW events from C# code (using the XP-compatible "classic provider" model). However, I am unable to find an easy way to consume these events - to see them in real-time and/or log them to a file. The only way I have found is that described in the NTrace documentation: using a tool which is only available as part of the

Logging the data in Trace.axd to a text/xml file

末鹿安然 提交于 2019-12-20 02:44:06
问题 In trying to track down a performance issue that is only occurring in our production environment, we have enabled tracing within the app so see method calls and page load times. This is working well and there is lots of information that helps to track down issues. However, the only way of viewing this information is to browse to the Trace.axd and then view each request individually. It is also only possible to track the first X requests in this way and X has a maximum limit of 10,000. Is

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

ⅰ亾dé卋堺 提交于 2019-12-18 11:23:17
问题 I've been trying to get to the bottom of an issue with binding the SelectedItem of my ComboBox and since I've had not success thusfar I started looking at ways to get more detailed debugging information by setting PresentationTraceSources.TraceLevel=High for specific bindings. Unfortunately after doing so I don't see any related items in my Ouput window under the Debug category. I'm using Visual Studio 2010 and my project is a WinForms project with heavy usage of interop using ElementHost to

What expressions are allowed in tracepoints?

大城市里の小女人 提交于 2019-12-18 10:44:19
问题 When creating a tracepoint in Visual Studio (right-click the breakpoint and choose "When Hit..."), the dialog has this text, emphasis mine: You can include the value of a variable or other expression in the message by placing it in curly braces... What expressions are allowed? 回答1: Microsoft's documentation is rather sparse on the exact details of what is and is not allowed. Most of the below was found by trial and error in the Immediate window. Note that this list is for C++, as that's what

See trace() of Flash when running in browser

可紊 提交于 2019-12-18 10:23:07
问题 What's an easy way to see the trace() output of Flash/Flex movies when running in any browser? 回答1: Download and install the content debugger version of Flash Player. Enable trace logging (official guide) by adding an mm.cfg file: ErrorReportingEnable=1 TraceOutputFileEnable=1 Where to save mm.cfg depends on the OS: Mac OS X: /Library/Application Support/Macromedia Windows: %HOMEDRIVE%\%HOMEPATH% Linux: /home/user name The log file, flashlog.txt, can be found at: Windows 95/98/ME/2000/XP: C:

NodeJS - a step-by-step debugger for NodeJS

流过昼夜 提交于 2019-12-18 05:47:30
问题 I'm looking for effective way for step-by-step debugging NodeJS server code. At this moment I use dozens of console.log()'s and it's extremely hard. The perfect tool is one that would allow me to check the values of every variable in stack and trace my program line by line. Prefered OS = MacOS/Linux. Is it possible? 回答1: How about this? You can try to test for Nodeclipse version 0.2.0 beta. http://www.tomotaro1065.com/nodeclipse/ It will help you to debug node apps easily. GENERATING OF

How can I trace a variable at runtime in C#?

亡梦爱人 提交于 2019-12-18 05:09:06
问题 How can I track a variable's values as they change, at runtime, in C#? I'm interested in the same functionality that the debugger provides when I'm tracing a variable through execution steps, only that I need to call upon it from my code. Some sort of key-value observing, but for all kinds of variables(local, class, static, etc), not only properties. So, basically, receive a notification when a variable's value changes. 回答1: You are working from the assumption that the debugger can track

Is there a way to Track/trace and log all the methods, by Class and Method name, during a debug session?

流过昼夜 提交于 2019-12-18 04:46:15
问题 I am not interested in logging into frameworks or under the covers but only at my source level code upon entry and exit of each method. I would like it to provide Class Name and Method Name and log it to file or at least have it fly by on the screen. My query is if it is possible with existing Xcode/Debugger/Instruments facilities, can I implement it in an easy way other than an NSLog statement at every method entry and exit, or is there a commercial tool that provides this capability ? I'm

How to include JSON response body in Spring Boot Actuator's Trace?

限于喜欢 提交于 2019-12-18 04:34:13
问题 Spring Boot Actuator's Trace does a good job of capturing input/output HTTP params, headers, users, etc. I'd like to expand it to also capture the body of the HTTP response, that way I can have a full view of what is coming in and going out of the the web layer. Looking at the TraceProperties , doesn't look like there is a way to configure response body capturing. Is there a "safe" way to capture the response body without messing up whatever character stream it is sending back? 回答1: Recently,

Strange resource dictionary warnings appear in output window even when the WPF trace settings are turned off

依然范特西╮ 提交于 2019-12-18 03:55:21
问题 I am using Visual studio 2011 beta with the april 2012 update installed .I have my Debugging options -> Output window > WPF trace settings all the values including Resource Dictionaries turned off.But I still continue to see warning messages like System.Windows.ResourceDictionary Warning: 9 : Resource not found; ResourceKey='CheckBoxCooperStyle1' How to debug this type of warnings provided they are not false positives ? 回答1: Reply from Microsoft support team "Thanks for the update. I was