Android Logcat在真实设备上记录太多东西,有时甚至是模拟器。
我的设置为:Show only selected application
但后面会显示No Debuggable Applications
。
日志级别目前位于Debug
以下是一个例子:
05-29 04:53:36.173 414-464/? I/WifiHW﹕ CMD: SIGNAL_POLL
05-29 04:53:36.193 414-464/? I/WifiHW﹕ REPLY: RSSI=-50
05-29 04:53:36.193 414-464/? I/WifiHW﹕ REPLY: LINKSPEED=65
05-29 04:53:36.193 414-464/? I/WifiHW﹕ REPLY: NOISE=9999
05-29 04:53:36.193 414-464/? I/WifiHW﹕ REPLY: FREQUENCY=0
05-29 04:53:36.223 414-427/? E/Sensors﹕ pjn=== LightSensor, als_value:50.000000
05-29 04:53:36.483 414-427/? E/Sensors﹕ pjn=== LightSensor, als_value:51.000000
05-29 04:53:36.743 414-427/? E/Sensors﹕ pjn=== LightSensor, als_value:50.000000
05-29 04:53:36.873 414-427/? E/Sensors﹕ pjn=== LightSensor, als_value:51.000000
05-29 04:53:37.003 414-427/? E/Sensors﹕ pjn=== LightSensor, als_value:50.000000
05-29 04:53:37.133 414-427/? E/Sensors﹕ pjn=== LightSensor, als_value:51.000000
答案 0 :(得分:0)
在您的应用中,您将拥有以下内容:
Log.v(TAG, "Test");
对于Android Studio:
在Logcat过滤器中,输入TAG
对于Eclipse:
在您的Logcat过滤器中,输入TAG
前面的tag:
所拥有的内容
例如:
tag:MY_TAG
答案 1 :(得分:0)
如果是Exception in thread "main" javax.xml.ws.soap.SOAPFaultException: java.lang.NullPointerException
...
Caused by: org.apache.cxf.binding.soap.SoapFault: java.lang.NullPointerException
at org.apache.cxf.binding.soap.interceptor.Soap11FaultInInterceptor.unmarshalFault(Soap11FaultInInterceptor.java:86)
at org.apache.cxf.binding.soap.interceptor.Soap11FaultInInterceptor.handleMessage(Soap11FaultInInterceptor.java:52)
at org.apache.cxf.binding.soap.interceptor.Soap11FaultInInterceptor.handleMessage(Soap11FaultInInterceptor.java:41)
at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:307)
at org.apache.cxf.interceptor.AbstractFaultChainInitiatorObserver.onMessage(AbstractFaultChainInitiatorObserver.java:113)
at org.apache.cxf.binding.soap.interceptor.CheckFaultInterceptor.handleMessage(CheckFaultInterceptor.java:69)
at org.apache.cxf.binding.soap.interceptor.CheckFaultInterceptor.handleMessage(CheckFaultInterceptor.java:34)
at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:307)
at org.apache.cxf.endpoint.ClientImpl.onMessage(ClientImpl.java:802)
at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.handleResponseInternal(HTTPConduit.java:1642)
at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.handleResponse(HTTPConduit.java:1533)
at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.close(HTTPConduit.java:1336)
at org.apache.cxf.transport.AbstractConduit.close(AbstractConduit.java:56)
at org.apache.cxf.transport.http.HTTPConduit.close(HTTPConduit.java:652)
at org.apache.cxf.interceptor.MessageSenderInterceptor$MessageSenderEndingInterceptor.handleMessage(MessageSenderInterceptor.java:62)
at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:307)
at org.apache.cxf.endpoint.ClientImpl.doInvoke(ClientImpl.java:516)
at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:425)
at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:326)
at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:279)
at org.apache.cxf.frontend.ClientProxy.invokeSync(ClientProxy.java:96)
at org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy.java:139)
... 7 more
:
Article Answered on Stackoverflow
No Debuggable Applications
答案 2 :(得分:0)