List Info

Thread: how to debug extra server in Zope




how to debug extra server in Zope
user name
2006-08-08 10:58:54
hi there,
(sorry if I post twice, my first email did not show up in my
email)

I am developping a modul for an additional Zope-server that
is running at port 1329.

it is configured in a zope conf stanza like this:
  %import MyZServers

  <nntp-server>
    # what port is the nntp server running at
    address 119
  </nntp-server>

as you can see this is a additional NNTP server is running
under Zopes hood.
of course, this NNTP server is accessing objects from the
ZODB.


now my question:
how can I set up wing that it listens to events coming from
this server (and not the http server)?

thanks
robert

_________________________________________________
Wing IDE users list
http://wingware.com
/lists/wingide
how to debug extra server in Zope
user name
2006-08-08 14:10:37
On Tue, 8 Aug 2006, robert rottermann wrote:
> I am developping a modul for an additional Zope-server
that is running at port 1329.
> 
> it is configured in a zope conf stanza like this:
>   %import MyZServers
> 
>   <nntp-server>
>     # what port is the nntp server running at
>     address 119
>   </nntp-server>
> 
> as you can see this is a additional NNTP server is
running under Zopes hood.
> of course, this NNTP server is accessing objects from
the ZODB.
> 
> now my question:
> how can I set up wing that it listens to events coming
from this server (and not the http server)?

Most likely, you'll want to *not* turn on debugging from
the
WingDBG control panel and instead insert and 'import
wingdbstub'
into the NNTP server code as described in:

http://wingware.com/doc/debug/debugging-external
ly-launched-code

Otherwise, I think the only alternative would be to hack up
WingDBG to allow starting a debug NNTP server instance in
the
same way it starts a debug HTTP server instance now.

Hope that helps.

Stephan Deibel

--
Wingware
Wing IDE for Python
Advancing Software Development

www.wingware.com
_________________________________________________
Wing IDE users list
http://wingware.com
/lists/wingide
how to debug extra server in Zope
user name
2006-08-08 15:28:25
Wingware Support wrote:
> Otherwise, I think the only alternative would be to
hack up
> WingDBG to allow starting a debug NNTP server instance
in the
> same way it starts a debug HTTP server instance now.

This would not be that easy as the code is somewhat hard to
read.
ZServer/Medusa asyncore code is a bugger to deal with. I may
clean it up
after I finished my shiny new Zope3 Wing Debugger(1), which
will support
multiple server types more easily.

Martijn Pieters

(1) Non-functional code can be viewed at
     http://trac.zopatista.com/zopatista/browser/z3wingdbg
/trunk
    Checked out at
     h
ttps://svn.zopatista.com/zopatista/z3wingdbg/trunk

_________________________________________________
Wing IDE users list
http://wingware.com
/lists/wingide
[1-3]

about | contact  Other archives ( Real Estate discussion Medical topics )