trace

How to enable the TRACE macro in Release mode?

隐身守侯 提交于 2019-12-12 09:34:46
问题 The TRACE macro can be used to output diagnostic messages to the debugger when the code is compiled in Debug mode. I need the same messages while in Release mode. Is there a way to achieve this? (Please do not waste your time discussing why I should not be using TRACE in Release mode :-) 回答1: Actually, the TRACE macro is a lot more flexible than OutputDebugString. It takes a printf() style format string and parameter list whereas OutputDebugString just takes a single string. In order to

Can I enable tracing in OWIN?

限于喜欢 提交于 2019-12-12 09:31:45
问题 I have an environmental problem somewhere in OWIN and I want to get some information about what is happening. I have read that I can enable tracing but can't find much information on how to do it. I have added the following to my web.config but no joy. Is this possible? <!-- 1. Enable the switch here. Without this, you get nothing. By default, Katana has "new SourceSwitch("Microsoft.Owin")" at the root level. --> <switches> <add name="Microsoft.Owin" value="Verbose" /> </switches> <!-- 2. Add

Can Intel PT (Processor Trace) be disabled/configured from within an OS?

坚强是说给别人听的谎言 提交于 2019-12-12 07:38:26
问题 I have a number of questions about Intel PT (have been trying to decode the manual but is very difficult). My questions are: I am trying to find out if Intel PT can be disabled or reconfigured from within an OS, or, more generally, from within the system it is providing a trace of. Does Intel PT generate events on writes to specific registers - such as CR3, IDTR, etc Can Intel PT write values back to the system - i.e. can an external debugging machine actively perform writes to register,

Is there a way to count how many times a Ruby method is called?

不问归期 提交于 2019-12-12 03:15:21
问题 Is there a way in Ruby to count how many times a method is called? I know that caller.first gives you the file name, line number, and caller method name, but couldn't find any further related information. 回答1: Use TracePoint to run a block of code whenever a method is called, then filter based on the method name. def foo() end count = 0 name = :foo TracePoint.trace(:call) do |t| count += 1 if t.method_id == name end count # => 0 foo count # => 1 foo count # => 2 count here is simply a local

Unknown permission android.permission.ACCESS_SUPERUSER in package com.powervr.PVRHub

梦想的初衷 提交于 2019-12-12 01:54:09
问题 While trying to utilise PVRHub Imagination tool for OpenGL ES tracing I meet a problems dealing with it. First APK launch gives warning about unknown permission android.permission.ACCESS_SUPERUSER and notification message about disabling to get root access (see details below): Logcat outputs related to the issue: W/PackageManager( 1083): Unknown permission android.permission.ACCESS_SUPERUSER in package com.powervr.PVRHub ... E/PVRHub (18453): Your device does not have a Superuser.apk. E

How to get android tcp trace

痞子三分冷 提交于 2019-12-11 19:29:11
问题 I am looking for an answer to the last questions in the quote This is in response to this thread: Since these are short messages (< MSS), I guess the stack may be implementing Nagle's algorithm. Is the server doing some kind of delayed ACKs? If possible you should capture a trace and see if there are pending acknowledgements from the other side. In either case, TCP_NODELAY should help. (1) What does ACK stand for? I googled it but couldn't find a definition (2) I will give the TCP_NODELAY

Converting a Console Application into a GUI that uses a BackgroundWorker

拥有回忆 提交于 2019-12-11 17:53:18
问题 I am converting a console application into a Windows Forms Application and a DLL. The Windows Forms Application uses a BackgroundWorker to have the DLL perform a computationally heavy task. Left over from the console application, the DLL is still littered with Console.WriteLine() statements. I would like to direct what used to be printed to the console into a TextBox in the Windows Form. Ideally, I would like to hook a stream from the DLL up to the text box during form initialization and be

Android/Eclipse: assistance with LogCat

五迷三道 提交于 2019-12-11 17:40:01
问题 I am building an Android app at the moment, but it keeps crashing. I am attempting to start an activity from an options menu. I have tried many different methods of starting the activity, but I get the same result each time at the startActivity. I have defined the activity in my Manifest file, and I can run the activity from a button, just not from onOptionsItemSelected. The error I am receiving is an ActivityThread.performLaunchActivity(ActivityThread$ActivityRecord,Intent) error, so I went

Trace Host of a SOAP Request

佐手、 提交于 2019-12-11 17:13:16
问题 The software my company uses has a web service which signature is more or less like this: [WebMethod] public DataSet MakeQuery(string sql) { } NOTE 1: I don't have the code for this. Recently, we noted the Sql Server gets a lot of processes without dying, so I want to trace the input of this webMethod. Is any way I can do this? I was thinking of a SoapExtension, but i don't have the source code for the web service. basically I want to know the name of the machine that sends the SOAP request.

AS3 - Catch ANY Error thrown and keep track of them?

前提是你 提交于 2019-12-11 15:42:05
问题 I would like to have many devices testing a game, and I find the best way to debug a game and solve specific code problems is to have the device connected and in debug mode in Adobe ANIMATE, that way I can catch any Errors in the Output window. For Example, if I am debugging and connected to Animate, the output window will throw errors like : ReferenceError: Error #1065: Variable bg_storage is not defined. at global/flash.utils::getDefinitionByName() at Game/stageAdd()[/Users/**/Game.as:360]