[Seaside] [Firebug] Programmatic halt

Michel Bany michel.bany at gmail.com
Tue Jul 10 13:04:51 UTC 2007


Not exactly what you are looking for but I mention it...

In SeasideAsync, I'm using this js code that helped a lot in debugging

function debug(aString)
{
	var newDiv = document.createElement("div");
	newDiv.setAttribute("style","position: relative; top: -1.5em; "
		+ "font-size: 60%; font-family: Verdana; color: blue; "
		+ "width: 100%; background-color: lightyellow");
	var textNode = document.createTextNode(aString);
	newDiv.appendChild(textNode);
	document.body.appendChild(newDiv);
}

And I have statements like this

	debug("Here");

where appropriate while debugging.

Scroll to the end of the page and see your js "transcript"

HTH
Michel.





More information about the Seaside mailing list