<div class="gmail_quote">On Fri, Feb 26, 2010 at 2:29 AM, Vincent Fretin <span dir="ltr">&lt;<a href="mailto:vincent.fretin@gmail.com">vincent.fretin@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div class="im">On Fri, Feb 26, 2010 at 6:28 AM, J. Cameron Cooper &lt;<a href="mailto:jccooper@gmail.com">jccooper@gmail.com</a>&gt; wrote:<br>
&gt; I&#39;m a long-time Zope/Plone guy, but I&#39;m starting my first real project with<br>
&gt; Grok. I figured I&#39;d publicly document problems I&#39;ve had getting started;<br>
&gt; hopefully they can be fixed and avoided, and at least they&#39;d be<br>
&gt; discoverable. I&#39;m not exactly a naive user, but I do have fresh eyes, so<br>
&gt; probably I can be of some help streamlining new developer startup.<br>
&gt; Item 1: getting a traceback for errors.<br>
&gt; Default config is to show a simple &quot;system error&quot; message. Unlike Zope 2,<br>
&gt; tracebacks are not shown on the console, nor--so far as I can tell--in the<br>
&gt; logs. (I&#39;m not entirely certain about the Grok logging system, so tell me if<br>
&gt; I&#39;m wrong; but, none of the log files extant had anything.)<br>
&gt; You can get a TTW traceback if running the debug.ini. This is, however, not<br>
&gt; easy. Requires a config change and a re-buildout. Also, it still doesn&#39;t go<br>
&gt; to the console or logs.<br>
<br>
</div>What about<br>
bin/paster serve parts/etc/debug.ini<br>
?<br></blockquote><div><br></div><div>I do use that form on Windows, where, apparently, the ctl script doesn&#39;t work. I&#39;ve been using it on Linux because I figure it must exist for a reason; I do see it loading up a lot of stuff into the Python path.</div>
<div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
I actually never used myroject-debug and myproject-ctl in the newest<br>
grok buildout. :) </blockquote></div><br>Okay, so why (I ask as a naive user) do the startup scripts exist? They do other things, I suppose. And they also allow plugging into init.d--or would, if they weren&#39;t dependent on being run in a particular directory (which is another complaint I have.)<div>
<br></div><meta http-equiv="content-type" content="text/html; charset=utf-8"><div>Whatever magic command that&#39;s needed is fine (and the paster way also lets you slip in, say, --reload easily as well) but I really don&#39;t know which to pick, as a theoretical novice. There really should be a normal recommended way of doing things that lets you do the things you normally need to do.</div>
<div><br></div><div>I&#39;ve dealt with all of this already, so I don&#39;t need it fixed for me, but it has cost me time that it needn&#39;t, and other folks might be more frustrated than I.</div><div><br></div><div>        --jcc<br>
-- <br>J Cameron Cooper<br><a href="mailto:jccooper@gmail.com">jccooper@gmail.com</a><br><a href="mailto:anything@jcameroncooper.com">anything@jcameroncooper.com</a><br>mobile: 713.882.7395<br>Skype: jcameroncooper<br>
</div>