On 01/18/2016 08:08 AM, 郝启臣 wrote:
hello,guys,I want to debug the glance code with pydev in eclipse,but i don't know how to do,can anybody help me?

ps:I debug horizon successfully in eclipse,the entrance of the dubug is manage.py,so where is the entry of the glance code.


_______________________________________________
Mailing list: http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
Post to     : [email protected]
Unsubscribe : http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
I gave up on pydev, and instead use rpdb:

http://adam.younglogic.com/2015/02/debugging-openstack-with-rpdb/

Glance uises eventlet, which messes with threads, which kills the debugger as it cannot context switch between the running and debug threads. You essentially need bypass Eventlet to make it happen. I used to know how to do this, I think it was essentially commenting out the part of glance that monkeypatches thread.

_______________________________________________
Mailing list: http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
Post to     : [email protected]
Unsubscribe : http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack

Reply via email to