<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">
Hello,
<div class=""><br class="">
</div>
<div class="">I'm interested to find out if debugging Python scripts with GDB is supported on OSX at all?</div>
<div class=""><br class="">
</div>
<div class="">I'm referring to the functionality described on <a href="https://wiki.python.org/moin/DebuggingWithGdb" class="">https://wiki.python.org/moin/DebuggingWithGdb</a> and on <a href="http://fedoraproject.org/wiki/Features/EasierPythonDebugging" class="">http://fedoraproject.org/wiki/Features/EasierPythonDebugging</a>.</div>
<div class=""><br class="">
</div>
<div class="">I've tried so far various combinations of pre-compiled GDB from the homebrew package manager, locally-compiled GDB from homebrew, as well as locally compiled GDB from MacPorts, together with a pre-compiled Python 2.7, homebrew-compiled 2.7, and
 custom compiled Python 2.7 from the official source tarball.</div>
<div class=""><br class="">
</div>
<div class="">My results so far were not successful. The legacy GDB commands to show a python stack trace or the local variables - do not work. And the new GDB commands (referenced on the Fedora project page) are not present at all in any of the GDB versions.</div>
<div class=""><br class="">
</div>
<div class="">I've checked the python CI build bot tests, and it seems the new GDB commands are only successfully tested on Linux machines, and are skipped on FreeBSD, OS X, and Solaris machines.</div>
<div class=""><br class="">
</div>
<div class="">Are the new python <-> GDB commands specific to Linux?</div>
<div class="">Are there any considerations to take in regards to debug symbols for Python / GDB on OSX?</div>
<div class=""><br class="">
</div>
<div class="">Has anyone attempted what I'm trying to do?</div>
<div class=""><br class="">
</div>
<div class="">I would be grateful for any advice.</div>
<div class=""><br class="">
</div>
<div class="">And I apologize if my choice of the mailing lists is not the best.</div>
<div class=""><br class="">
</div>
<div class="">Regards, Alex.</div>
<div class=""><br class="">
</div>
<div class=""><br class="">
</div>
</body>
</html>