Worked perfectly in the first attempt. Thanks a lot for the help. :) <br><br><div class="gmail_quote">On Tue, Jul 23, 2013 at 10:41 AM, Gareth <span dir="ltr"><<a href="mailto:academicgareth@gmail.com" target="_blank">academicgareth@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">the key reason it here: <a href="https://github.com/openstack/swift/blob/master/swift/common/utils.py#L1047" target="_blank">https://github.com/openstack/swift/blob/master/swift/common/utils.py#L1047</a><div>
<br></div><div>
you have many ways to stop flush IO; I prefer add a line "stdio_files = []" after line 1037</div></div><div class="gmail_extra"><br><br><div class="gmail_quote"><div><div class="h5">On Sun, Jul 21, 2013 at 1:58 AM, Muhammad Kazim <span dir="ltr"><<a href="mailto:kazimalik@gmail.com" target="_blank">kazimalik@gmail.com</a>></span> wrote:<br>

</div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5">Hi all,<br><br> I wanted to debug Swift source code. I have a Devstack setup running on my machine that i have configured to only run keystone, mysql and swift.<br>


<br>I have used pdb to debug source code. I was able to 
debug python-swiftclient, middleware (common), and proxy-server code. 
However, when i try to debug Object Server of Swift, by issuing 
pdb.set_trace() call in diskwrite or any write function in 
/swift/obj/server.py (except constructor) and than issue a 'swift post' 
or 'swift upload' command from other terminal, the object server 
crashes. The screen of s-object shows an error in the line in which 
'pdb.set_trace()' is called.<br><br>Can someone please guide me how can i 
debug the Swift s-object code in /swift/obj/server.py. Thanks.<br><br>Regards,<br>
Muhammad Kazim<br>
<br></div></div><div class="im">_______________________________________________<br>
Mailing list: <a href="https://launchpad.net/~openstack" target="_blank">https://launchpad.net/~openstack</a><br>
Post to     : <a href="mailto:openstack@lists.launchpad.net" target="_blank">openstack@lists.launchpad.net</a><br>
Unsubscribe : <a href="https://launchpad.net/~openstack" target="_blank">https://launchpad.net/~openstack</a><br>
More help   : <a href="https://help.launchpad.net/ListHelp" target="_blank">https://help.launchpad.net/ListHelp</a><br>
<br></div></blockquote></div><span class="HOEnZb"><font color="#888888"><br><br clear="all"><div><br></div>-- <br><div dir="ltr"><font color="#444444">Gareth</font><div><font color="#444444"><br></font><div><i><font color="#444444">Cloud Computing, OpenStack, Fitness, Basketball</font></i></div>

<div><i><font color="#666666">OpenStack contributor</font></i></div><div><i><font color="#666666">Company: <a href="http://www.ustack.com" target="_blank">UnitedStack</a></font></i></div><div><i><font color="#999999">My promise: if you find any spelling or grammar mistakes in my email from Mar 1 2013, notify me </font></i></div>

<div><i><font color="#999999">and I'll donate $1 or ¥1 to an open organization you specify.</font></i></div></div></div>
</font></span></div>
</blockquote></div><br>