I copied this code from an example. I've read it 100 times.
Array.prototype.map = function(fn) {
var r = [];
var l = this.length;
for(var i = 0; i < l; i++) {
r.push(fn(this[i]));
}
return r;
};
Why does Firefox say:
not well-formed
file:///some/path.html Line: 5
for(var i = 0; ...
I have a web app that works fine on desktop browsers, but struggles on the palm pre browser (via the emulator). How do I debug the app on the palm pre browser? There doesn't seem to be any error console, dom inspector, etc... I'd expect such tools from a web-app oriented phone.
...
Hi, am pretty excited with the GNU Debugger and a GUI called Insight as it has saved me A LOT OF time. Thus I am posting this question/answer for other newbies out there like me having problems with their C code looking for a visual way to see what's going on.
I am working on Linux Mint (Ubuntu) btw.
...
I have the source to two Visual Studio solutions. One is a website that calls a WCF service, and the other solution is a WCF service that compiles into a DLL. The website has the WCF service's binary DLL as a reference.
Here's the problem: when I run the website, an uncaught exception makes its way up from the WCF service.
How do I run...
I have an ASP.NET web site uses a compiled DLL from another VS.NET solution (have the DLL's original solution--.cs files, .csproj, .sln, etc) as a reference. There's an exception coming up to the web site from this DLL and I'd like to debug it (the DLL). Can I do this? Can I drill down into the DLL, set break points, etc. somehow? I've h...
I'm trying to get indefero working on a webhost I'm running, and the /login URL simply appears to be redirecting back to the main controller. I assume I have a setup issue, and rather than bother the developers, I figure I can blunder through and figure it out. (I'm somewhat familiar with PHP). What I'm not familiar with, is if there'...
Sometimes I need to inspect elements that are only showing up on a page if you put mouse over some area. The problem is that if you start moving mouse towards firebug console in order to see the changes, mouse-out event is triggered and all changes I am trying to inspect disappear. How to deal with such cases?
Basically I am looking for...
Is there any way to debug a call coming from an AJAX post? This jQuery fires when the user hits OK:
$.post(
"/Detail/Copy",
{
bpid: $("#benefit_plan_id").val(),
year: $("#copyYear").val(),
plan: $(this).val()
},
function(data) { }
);
If I put the breakpoint in my controller:
<AcceptVerbs(HttpV...
I have recently finished phase 1 of my Facebook game:
Rails Across Europe
It works fine on my dev system, but other people report errors and timeouts when they try to run it. Does anyone know how I would go about debugging these issues if they don't occur on my system?
Thanks.
...
I have written a Perl script that sends data to clients. It works some time (from one minute to 2 hours) and then goes down. No errors in console, no errors in log.
I added an END section to it - it isn't executed.
What can I do to figure out what the problem is?
...
Looking for a way to programticaly dump the call stack and a .net Win Forms app when ever a section of code is hit. Its something I haven't come across before but will save me some debug time.
Update : Forgot to add , how much overhead would this add to the application , i.e. would it slow it down considerably.
...
For most assemblies, I'm able to generate their respective .pdb files. However, I've got one project that isn't generating their .pdb files.
I've made sure that it on debug mode and that the project's code is not being optimized.
Any ideas?
...
I've been using Eclipse for ages and I use the debugger all the time but recently I've known it to skip over breakpoints while debugging! I've even had it so that I've set a break point on a println I'll see the text come out but not hit the breakpoint. Also sometimes I'll hit a break point consistently in one area of the code but not ...
Hi,
We use MSBuild quite extensively as part of our continuous integration process, and whilst it is incredibly powerful and we can do practically all of our build, test and deployment within it (utilising some custom tasks) - we've found that debugging it using tags is a pain and cannot always provide us with enough information.
I've...
Hi all,
I would want to ask you if you know any application like fiddler but for mac os x , i need to debug some requests from google earth in mac os x. i used to do it with fiddler on windows but now i don't know ho to do them in mac. Thanks in advance.
...
When I'm debugging my Android applications in Eclipse, I frequently get a "JDI thread evaluations" error when I try to display the value of particular expressions using the Display view.
Similarly, it also seems to happen when I set conditions on breakpoints.
I'm not 100% sure about this, but the problem seems to occur when I evaluate ...
Let's say I have
int a()
{
/* Tons of code
....*/
return someInt;
}
void main()
{
/* Tons of code
....*/
int k = a();
/* Tons of code
....*/
}
Next, lets pretend that I'm debugging one step at a time and about to go into the
int k = a();
statement but that I just want it executed without stepping through a() manually.
Is there ...
The title says it all. I want to be able to see a time stamp in the beginning of every trace in the debug window in Visual studio.
[Time stamp here] The thread 'Win32 Thread' (0xcd0) has exited with code 0 (0x0).
[Time stamp here] => CLR ProvideAssembly: AppDomainId: 1, Ref: 'msvcm90d...
Example of this is the sysinternals appli...
I suppose this issue applies to deadlocks, live-locks, or just lock wait timeouts.
I'm trying to figure out what query is causing a lock that is preventing another query from executing. Oracle has (if memory serves) a LOCK table that you can join onto itself to determine which queries are locking others. I need a way to accomplish t...
Whenever I set a breakpoint in JavaScript in Visual Studio, the debugger never breaks at the point. When I put my mouse over the breakpoint at run-time, it says "This breakpoint will currently not be hit. No symbols have been loaded for this document."
What does this mean? How do I enable JavaScript debugging/breakpoints?
...