cool-RR / PySnooper

Never use print for debugging again
MIT License
16.37k stars 951 forks source link

pysnooper cant deco async funciton #211

Closed ydf0509 closed 3 years ago

ydf0509 commented 3 years ago
@snoop(depth=1000,)
async def af():
        async with aiohttp.request('get', url='https://www.baidu.com') as resp:
            text = await resp.text()
            print(text)

if __name__ == '__main__':
     asyncio.get_event_loop().run_until_complete(af())

this will be error.pycnooper cant decorate async function

cool-RR commented 3 years ago

Duplicate of #27