Hi,<div><br></div><div>I wonder if other people suffer from the same problem when debugging javascript:<br><br>Seaside&#39;s response is viewed by browsers as a string without line-breaks.<br>Normally this isn&#39;t a problem as the browser &quot;pretty-prints&quot; the output when inspecting the html.<br>
However when debugging javascript, either inline or within a file-library the script debugger (I&#39;m currently using Mac Safari) shows the output as a single line - which makes it impossible to interpret any javascript generated errors (&quot;syntax error: line 1&quot;!!) or to set meaningful breakpoints.<br>
<br>I&#39;ve discovered that calling #withInternetLineEndings on the file-library string results in browsers interpreting the  line-endings as expected.<br><br>Locally when I&#39;m debugging I&#39;ve created a class derived from WAHtmlDocument, which overrides #nextPutAll: <br>
WAHtmlDocumentWithInternetLineEndings&gt;&gt;#nextPutAll: aString<br>    super nextPutAll: aString withInternetLineEndings<br><br>and I modify WAFileLibrary&gt;&gt;#handle: modifying the WAResponse&gt;&gt;#document: to: <br>
document: ((self documentForFile: fileName) withInternetLineEndings)<br><br>Is there a better solution? Are there easier workarounds, browser settings etc.<br></div><div><br></div><div>I created an issue for this problem: <a href="http://code.google.com/p/seaside/issues/detail?id=675">http://code.google.com/p/seaside/issues/detail?id=675</a></div>
<div><br></div><div>Though if there are easy workaround that I&#39;ve missed, I&#39;d be delighted to close the issue.</div><div><br></div><div>Thanks</div><div><br></div><div>Nick</div>