Saturday, February 25, 2006

JavaScript debugging

After JavaScript debugging with boring alert() and slow Venkman (FireFox extension) I was glad to know that Visual Studio can handle javascripts.

Not only ASP.NET projects can be debugged, but plain HTML + JavaScript sites/pages as well (say - Random Sudoku ;)).

It's pretty easy (not very straightforward though):
1. Be sure Script Debugging in IE is enabled. (Uncheck Disable Script Debugging in Internet Options \ Advanced).
2. Add debugger keyword in your JavaScript. It should be in the function you want to debug.
E.g. if you need to debug Foo() when the keyword in Foo():

Foo = function() {
debugger
var i = 0;
}

If you put debugger outside of Foo() then you will not be able to set breakpoint in there.

3. Start IE, and open your HTML. You'll see Visual Studio Just-In-Time Debugger dialog when debugger keyword is reached.

4. In the dialog choose debugger you wish to use, and enjoy!

Labels: , , , ,

Thursday, February 23, 2006

Indexing is working

I was wrong, googlebot was there... now I see "we found some URLs listed in your sitemap that we cannot accept" error. So the problem is on my side, seems like trailing slash should not be there or something like this.

Google index

Somehow my domain (www.digizzle.com) disappeared from google index. Seems like it can be a reason why even supplying Google Sitemaps for "Random Sudoku" still not includes it in the index.
OTOH - maybe I should wait more until googlebot gets here.

Friday, February 17, 2006

Random Sudoku website

Random Sudoku goes online! Each Sudoku generated randomly.

This is a development blog - place for news about new features, improvements and bug fixes.

Intention was to create a Single Page Application, which allows playing Sudoku online, without installations or page reloads.

It’s my first experience with JavaScript, and IE still has some problems (FireFox and Opera don’t have these problems though). Eventually the problems will be fixed.