Re: [Zope-dev] doubt in starting Zope in debug mode on Windows
[resending 'cos zope-dev bans batch files for some stupid reason :-S] Aruna Kathiria wrote: It started but Im not getting the python command prompt as how we get it on unix when we use zopectl start (in debug mode). I'm fairly sure you mean "zopectl debug" on linux :-) ...in which case, I use the attached batch script and python script to get what you're after. cheers, Chris PS: Debug mode is a red herring here, it has nothing to do with Zope starting a command prompt or not. runinteractive.bat: set ZOPE_HOME=e:\Zope\2.7.3 set PYTHON=%ZOPE_HOME%\bin\python.exe set INSTANCE_HOME=E:\Zope\MyInstance cls %PYTHON% -i %INSTANCE_HOME%\bin\interactive.py %INSTANCE_HOME%\etc\zope.conf -- Simplistix - Content Management, Zope & Python Consulting - http://www.simplistix.co.uk # (c) Simplistix Ltd 2004 # All rights reserved import os import sys config_file = os.path.realpath(sys.argv[1]) sys.argv=sys.argv[:1] print "Parsing %s" % config_file import Zope Zope.configure(config_file) app = Zope.app() ___ Zope-Dev maillist - Zope-Dev@zope.org http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope )
RE: [Zope-dev] doubt in starting Zope in debug mode on Windows
> This there anyother way to debug specific zope site on > windows. In your Zope's $instance\bin, you should find runzope.bat - you can execute this from a command-prompt. Depending on things I don't quite understand, you may or may-not also need to enable debug-mode in your .conf files. Any command-line options or environment vars supported by zope itself should work - but as zdctl doesn't work on Windows, those commands don't work. Hopefully someone can offer more general advice - apart from the lacking zdctl, everything else should work as per Linux. Mark ___ Zope-Dev maillist - Zope-Dev@zope.org http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope )
RE: [Zope-dev] doubt in starting Zope in debug mode on Windows
This there anyother way to debug specific zope site on windows. --- Mark Hammond <[EMAIL PROTECTED]> wrote: > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] Behalf > Of Aruna Kathiria > > It started but Im not getting the python command > prompt as how we get it > > on unix when we use zopectl start (in debug mode). > > The "debug" capabilities of Python services on > Windows do not extend to > providing any kind of "command prompt". Also, the > way Zope is structured as > a service means that you don't even get to see > Zope's output when run as > this way. The "debug" facility in this case should > be considered more so > the Zope service framework can be debugged, not > specific Zope sites. > > Regards, > > Mark > > ATTACHMENT part 2 application/ms-tnef name=winmail.dat > ___ > Zope-Dev maillist - Zope-Dev@zope.org > http://mail.zope.org/mailman/listinfo/zope-dev > ** No cross posts or HTML encoding! ** > (Related lists - > http://mail.zope.org/mailman/listinfo/zope-announce > http://mail.zope.org/mailman/listinfo/zope ) > __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com ___ Zope-Dev maillist - Zope-Dev@zope.org http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope )
RE: [Zope-dev] doubt in starting Zope in debug mode on Windows
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Aruna Kathiria > It started but Im not getting the python command prompt as how we get it > on unix when we use zopectl start (in debug mode). The "debug" capabilities of Python services on Windows do not extend to providing any kind of "command prompt". Also, the way Zope is structured as a service means that you don't even get to see Zope's output when run as this way. The "debug" facility in this case should be considered more so the Zope service framework can be debugged, not specific Zope sites. Regards, Mark <>___ Zope-Dev maillist - Zope-Dev@zope.org http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope )