This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: [feature request] Add lldb equivalent to Tools/gdb
Type: enhancement Stage: needs patch
Components: Demos and Tools Versions:
process
Status: open Resolution:
Dependencies: Superseder:
Assigned To: Nosy List: Manjusaka, corona10, erlendaasland, gregory.p.smith, ned.deily, ronaldoussoren, shreyanavigyan, vstinner
Priority: normal Keywords:

Created on 2019-11-11 17:25 by Manjusaka, last changed 2022-04-11 14:59 by admin.

Messages (5)
msg356372 - (view) Author: Manjusaka (Manjusaka) * Date: 2019-11-11 17:25
After MacOS 10.15.x, Apple has changed this system feature that will make more difficult for using GDB in MacOS. 

So is there any chance to support lldb enhancement such as py-list and etc.?
msg393689 - (view) Author: Gregory P. Smith (gregory.p.smith) * (Python committer) Date: 2021-05-14 19:51
This would be useful beyond macOS.  Clang/LLVM is the compiler toolchain of choice for a lot of the world these days.  Including lldb.  gdb cannot be assumed to be available or even work everywhere.  This would be a great thing to have.
msg393891 - (view) Author: STINNER Victor (vstinner) * (Python committer) Date: 2021-05-18 17:15
Does lldb support scripting in any way?

For basic scripting, see also Misc/gdbinit which provides gdb macros:

* pyo
* pyg
* pylocals
* linenon
* pyframev
* pyframe
* printframe
* pystack
* pystackv
* pu

I don't know if these macros are up to date for Python 3.11.
msg394525 - (view) Author: Shreyan Avigyan (shreyanavigyan) * Date: 2021-05-27 09:41
Would be great. LLDB is also supported on Windows (by Visual Studio) unlike gdb.
msg394734 - (view) Author: Erlend E. Aasland (erlendaasland) * (Python triager) Date: 2021-05-29 17:54
This looks useful: https://lldb.llvm.org/use/python.html
History
Date User Action Args
2022-04-11 14:59:23adminsetgithub: 82949
2021-05-29 17:54:55erlendaaslandsetmessages: + msg394734
2021-05-27 09:41:34shreyanavigyansetnosy: + shreyanavigyan
messages: + msg394525
2021-05-25 14:22:45corona10setnosy: + corona10
2021-05-18 17:15:27vstinnersetnosy: + vstinner
messages: + msg393891
2021-05-15 13:01:19erlendaaslandsetnosy: + erlendaasland
2021-05-14 20:19:17ned.deilysetcomponents: - macOS
2021-05-14 19:51:32gregory.p.smithsettype: enhancement
components: + Demos and Tools
versions: - Python 3.10
nosy: + gregory.p.smith

messages: + msg393689
stage: needs patch
2020-11-27 14:27:45ronaldoussorensettitle: Support lldb enhancement in MacOS -> [feature request] Add lldb equivalent to Tools/gdb
versions: + Python 3.10, - Python 3.9
2019-11-11 17:25:55Manjusakacreate