[Seaside] Internet line endings

Sebastian Sastre sebastian at flowingconcept.com
Thu Mar 8 18:47:42 UTC 2012


yep, good one


On Mar 8, 2012, at 3:42 PM, Paul DeBruicker wrote:

> Chrome/Chromium can pretty print javascript in its developer tools.
> 
> 
> At the bottom of the "Scripts" pane there is a button that is a matched set of braces (e.g. {} ).  In the script drop down switch to the '(program)' script and click the braces.
> 
> As you make ajax requests or whatever the scripts in the responses are added to that menu.
> 
> 
> 
> 
> 
> 
> On 12-03-08 10:13 AM, Sebastian Sastre wrote:
>> Hey there,
>> 
>> for the record:
>> 
>> If you find yourself having to debug javascript /served by Seaside
>> libraries/ you could be in trouble because you probably find that code
>> all in a long single line. So you can't put breakpoints, etc. Is not
>> even readable.
>> 
>> In such situation you want to use this:
>> 
>> WAFileLibrary>>documentForFile: aFilename
>> | content |
>> content := self asSelector: aFilename.
>> ^ (self perform: content) withInternetLineEndings
>> 
>> sebastian <http://about.me/sebastianconcept>
>> 
>> o/
>> 
>> 
>> 
>> 
>> 
>> _______________________________________________
>> seaside mailing list
>> seaside at lists.squeakfoundation.org
>> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
> 
> _______________________________________________
> seaside mailing list
> seaside at lists.squeakfoundation.org
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside

sebastian

o/



-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/seaside/attachments/20120308/c8b81e7b/attachment.htm


More information about the seaside mailing list