16
votes
5answers
3k views

Implementing a no-op std::ostream

I'm looking at making a logging class which has members like Info, Error etc that can configurably output to console, file, or to nowhere. For efficiency, I would like to avoid the overhead of ...
20
votes
6answers
14k views

What is the best way to dump entire objects to a log in C#?

So for viewing a current object's state at runtime, I really like what the Visual Studio Immediate window gives me. Just doing a simple ? objectname Will give me a nicely formatted 'dump' of the ...
8
votes
5answers
6k views

console.log object at current state

console.log will show the object at the last state of execution, not at the state when console.log was called. I have to clone the object just to output it via console.log to get the state of the ...
38
votes
10answers
34k views

Logcat not displaying my log calls

I'm a total noob at Android programming, and wanted to learn how to debug my apps. I can't seem to have my Log.i|d|v calls displayed in the LogCat. Here's the code that I'm using. As you can see ...
15
votes
5answers
3k views

Automatically adding Enter/Exit Function Logs to a Project

I have a 3rd party source code that I have to investigate. I want to see in what order the functions are called but I don't want to waste my time typing: printf("Entered into %s", __FUNCTION__) and ...
11
votes
3answers
14k views

How to detect system information like os or device type

The most important things i want to know are the device type, the os version, if it has a hardware keyboard and maybe the screen resolution. but if you know other useful debug information please add ...
8
votes
6answers
11k views

Determine if a java application is in debug mode in Eclipse

I want to change the logging level depending if I'm debbugging or not, but I can't find a code snippet to check if the application is running in debug mode. I'm using eclipse to debug the ...
8
votes
3answers
13k views

Android Debugging with Logcat and Emulator. Is it possible?

This is pretty simple: I'm using NetBeans on Linux with Android emulator 1.6. I have Logcat on my android phone, but the process of getting the messages to somewhere readable isn't smooth at all. Can ...
9
votes
4answers
3k views

Colored grep?

Sometimes coloring a logfile or other gives a good overview when looking for stuff and behaviors I just saw that grep have a coloring feature grep -C 99999 --color <regexp> <filename> ...
6
votes
3answers
2k views

android.util.Log when publishing - what can I do / not do

I've got a hell of a lot of Log.i Log.d Log.e in my code for a recent app I've done. I'm about to publish this app and I don't really want people seeing it when they plug there phone into adb, but I ...
6
votes
2answers
23k views

How to set level logging to DEBUG in Tomcat 6?

everyone! I would like to set level logging to DEBUG in tomcat but in console nevertheless only INFO and WARN output. Could anybody tell me what's wrong? Thanks! My C:\tomcat\logging.properties: # ...
4
votes
4answers
5k views

Log.d and impact on performance

I'm not entirely sure about what I'm reading in the documentation. Is it ok to leave a bunch of log.d pieces of code scattered about, or should I comment them out so that they don't impact my app's ...
11
votes
6answers
2k views

How do you log to Firebug from an extension?

I'm writing an extension for Firefox, and I need to log some data to Firebug's console. Within the scope of my addon, "console" is undefined, and "window.content.console" is also undefined. So how do ...
10
votes
10answers
2k views

Live javascript debugging by recording function calls and parameters

Is there a debugging system that allows me to record javascript function calls and their parameters as they occur? this would allow me to trace and debug applications in live/client situations without ...
4
votes
1answer
2k views

understanding “Layout run failure” error logging

I am doing some charting work and got a single line message "Layout run failure" when nothing was being created on the chart. Looking into this I found that I have to add some additional script files ...

1 2 3
15 30 50 per page