All Questions

84
votes
6answers
14162 views

Is Chrome's JavaScript console lazy about evaluating arrays?

I'll start with the code: var s = ["hi"]; console.log(s); s[0] = "bye"; console.log(s); Simple, right? In response to this, Firebug says: ["hi"] ["bye"] Wonderful, but Chrome's JavaScript conso...
1102
votes
11answers
836331 views

Python string formatting: % vs. .format

Python 2.6 introduced the str.format() method with a slightly different syntax from the existing % operator. Which is better and for what situations? The following uses each method and has the same ...
346
votes
17answers
137704 views

How can I find the method that called the current method?

When logging in C#, how can I learn the name of the method that called the current method? I know all about System.Reflection.MethodBase.GetCurrentMethod(), but I want to go one step beneath this in t...
549
votes
8answers
102356 views

How to get ELMAH to work with ASP.NET MVC [HandleError] attribute?

I am trying to use ELMAH to log errors in my ASP.NET MVC application, however when I use the [HandleError] attribute on my controllers ELMAH doesn't log any errors when they occur. As I am guessing i...
138
votes
11answers
93969 views

How can I change the default behavior of console.log in Safari?

In Safari with no add-ons, 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 ...
4
votes
2answers
4146 views

Output log using FtpWebRequest

I wonder if it's possible to have output log for my FTP client using FtpWebRequest. Something like this: [R] USER xxx [R] 331 Please specify the password. [R] PASS (hidden) [R] 230 Login successful....
248
votes
17answers
183103 views

What happened to console.log in IE8?

According to this post it was in the beta, but it's not in the release?
195
votes
7answers
107187 views

Does IE9 support console.log, and is it a real function?

In which circumstances is window.console.log defined in Internet Explorer 9? Even when window.console.log is defined, window.console.log.apply and window.console.log.call are undefined. Why is this? ...
566
votes
11answers
126364 views

Hide strange unwanted Xcode logs

When using the Xcode 8+ and creating a new blank project, the following logs appear when running the application: 2016-06-13 16:33:34.406093 TestiOS10[8209:100611] bundleid: com.appc.TestiOS10, enabl...
41
votes
3answers
21756 views

Chrome/Firefox console.log always appends a line saying undefined

Every time console.log is executed, a line saying undefined is appended to the output log. Happens in both Firefox and Chrome on Windows and Linux.

Previous Next