doubt in starting Zope in debug mode on Windows
Hi All, Iam trying to start to zope in debug mode on windows. I have installed Zope2.7.4 on my windowsXP machine. I started zope in debug using the following the command: ------------------------------------------------------------------------ -------- C:\Zope-Instance\bin>"\zope-2.7.2-0\bin\python.exe" zopeservice.py debug Debugging service Zope_-1444516661 - press Ctrl+C to stop. Info 0x40001002 - The Zope_-1444516661 service has started (Zope instance at C:\ Zope-Instance). ------------------------------------------------------------------------ --------- 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). Does anybody have any pointers or Im I doing anything wrong. Thanks in advance, Sameena.
From: zope-dev-bounces@zope.org [mailto:zope-dev-bounces@zope.org]On 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
This there anyother way to debug specific zope site on windows. --- Mark Hammond <mhammond@skippinet.com.au> wrote:
From: zope-dev-bounces@zope.org [mailto:zope-dev-bounces@zope.org]On 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
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
[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
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Chris Withers wrote: | [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. It does affect what logging output goes to the console, however. If you don't switch it on, and start Zope in the foreground, you wont see much happen, at least until Zope hits a breakpoint. Tres. - -- =============================================================== Tres Seaver tseaver@zope.com Zope Corporation "Zope Dealers" http://www.zope.com -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFCEjUvGqWXf00rNCgRAtn7AJsG7XjnOfOlSm4v9WUtYnWkDsLf0QCffqn1 x7Nm6YAgq0OZtc7LJQ6iLnc= =ZOtr -----END PGP SIGNATURE-----
participants (5)
-
Aruna Kathiria -
Chris Withers -
Mark Hammond -
Sam Tab -
Tres Seaver