In the following example:
import asyncio import ipdb class EchoServerProtocol: def connection_made(self, transport): self.transport = transport def datagram_received(self, data, addr): message = data.decode() print('Received %r from %s' % (message, addr)) print('Send %r to %s' % (message, addr)) self.transport.sendto(data, addr) loop = asyncio.get_event_loop() ipdb.set_trace(context=21) print("Starting UDP server")
I'm trying to get in
loop.create_datagram_endpoint( EchoServerProtocol, local_addr=('127.0.0.1', 9999))
to understand how he behaves. However, when I try to enter the coroutine, the debugger simply jumps over it, as if n were pressed instead of s .
> ../async_test.py(18)<module>() 17
Behavior observed with PyCharm IDE (2016 2.3 Community).
I expect to finish here and be able to additionally execute the code.
source share