<div class="gmail_quote">On Fri, Feb 26, 2010 at 2:29 AM, Vincent Fretin <span dir="ltr"><<a href="mailto:vincent.fretin@gmail.com">vincent.fretin@gmail.com</a>></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 <<a href="mailto:jccooper@gmail.com">jccooper@gmail.com</a>> wrote:<br>
> I'm a long-time Zope/Plone guy, but I'm starting my first real project with<br>
> Grok. I figured I'd publicly document problems I've had getting started;<br>
> hopefully they can be fixed and avoided, and at least they'd be<br>
> discoverable. I'm not exactly a naive user, but I do have fresh eyes, so<br>
> probably I can be of some help streamlining new developer startup.<br>
> Item 1: getting a traceback for errors.<br>
> Default config is to show a simple "system error" message. Unlike Zope 2,<br>
> tracebacks are not shown on the console, nor--so far as I can tell--in the<br>
> logs. (I'm not entirely certain about the Grok logging system, so tell me if<br>
> I'm wrong; but, none of the log files extant had anything.)<br>
> You can get a TTW traceback if running the debug.ini. This is, however, not<br>
> easy. Requires a config change and a re-buildout. Also, it still doesn't go<br>
> 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't work. I'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'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's needed is fine (and the paster way also lets you slip in, say, --reload easily as well) but I really don'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've dealt with all of this already, so I don't need it fixed for me, but it has cost me time that it needn'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>