gh-89480: Document the gdb helpers#115657
Conversation
|
CC: @encukou |
|
Thank you! I'll update this for recent GDB, and then we can perhaps point the devguide to it. To everyone else: Please don't add GitHub suggestions, they might be lost. |
|
I'm signing off for the day. Here's a first pass, I'll finish tomorrow. |
|
Ready for review. Diátaxis-wise, this leans toward being a reference rather than a how-to guide. I'm not sure how to quickly handle that -- the document assumes you know debugging with GDB, and only provides a few details. Once merged, the devguide page should be updated to point here, and retain only the parts specific to CPython core ( |
hugovk
left a comment
There was a problem hiding this comment.
Some typos found with https://github.com/codespell-project/codespell
Co-authored-by: Hugo van Kemenade <[email protected]>
ezio-melotti
left a comment
There was a problem hiding this comment.
I just skimmed through it and left a few comments about the high-level structure of the document and its headers.
| You can also add multiple paths, separated by ``:``. | ||
|
|
||
|
|
||
| Linux distros |
There was a problem hiding this comment.
This title is not very descriptive -- maybe
| Linux distros | |
| Installing debug information package on Linux |
If this only works on Linux, you could just use:
| Linux distros | |
| Installing Python debug information package |
and state in the first paragraph that these are only available on Linux.
There was a problem hiding this comment.
Setting things up depends on how you got your Python. These are examples for two common cases: source builds, and Linux distros. (No Windows or Mac, you wouldn't typically use GDB there.)
| Note that even if the instructions match your system, they might be outdated. | ||
|
|
||
|
|
||
| Python built from source |
There was a problem hiding this comment.
If this is a prerequisite, it should be listed above, and this section would just explain how to do it, with a title like:
| Python built from source | |
| Building Python from source |
There was a problem hiding this comment.
I'd keep Python itself is a prerequisite for the prerequisites. The guide doesn't tell you how to get it, but how to set things up for it.
Hopefully “Setup with Python built from source” is clearer.
| you generally do need to install the debug info package separately. | ||
|
|
||
|
|
||
| Debug build and Development mode |
There was a problem hiding this comment.
This title could also be more "action-oriented":
| Debug build and Development mode | |
| Building Python in "debug" and "development" mode |
or
| Debug build and Development mode | |
| Enabling "debug" and "development" mode |
This could also be a sub-section of the "Building Python from source" section above. You wouldn't want to read that and build everything and then discover that you have to do it again with debug/dev mode enabled.
There was a problem hiding this comment.
You do want both: for debugging extensions it's sometimes easier to use the production build.
And these are not specific to source builds.
| make the process easier. | ||
|
|
||
|
|
||
| Using the ``python-gdb`` extension |
There was a problem hiding this comment.
This seems to be the actual how-to.
You could also add a short introductory paragraph like "After installing the dependencies, you can now use the `python-gdb extension to ...".
There was a problem hiding this comment.
The previous section tells you how to set things up, this tessl you how to use it :)
|
From my discord post:
I understand that you wish to move this forward quickly @encukou. I would like to see:
|
There was a problem hiding this comment.
Let's come up with a better title and address the introduction section that I mention in my comments. After that, I think this will be ready to merge from my vantage point.
I'm less concerned about where this falls diataxis-wise and more concerned that we have clarity of its purpose for the reader and for future disambiguation of the old-style HOWTOs.
|
When you're done making the requested changes, leave the comment: |
Co-authored-by: Ezio Melotti <[email protected]>
|
Thanks! Your perspectives are very helpful here; I'm too deep in :)
I thought the first section covers exactly these questions. When you have the time, could you please be more specific about how it should be written? |
|
@encukou I like the changes that you have made to the headings.
I think it is being more explicit to the reader. I will leave an example in the comments here later today. Thanks! |
|
@encukou This is more along the lines of what I was thinking:
It takes most of the info that you wrote but breaks it into more logical chunks for a reader, such a scientist writing and debugging a C extension, who has not yet used the the Python extension with GDB. |
willingc
left a comment
There was a problem hiding this comment.
See sample wording in my comment.
Co-Authored-By: Carol Willing <[email protected]>
|
Thank you for the concrete wording! I hope it will help future me write better introductions on my own :) I edited your suggestion for technical details, and to highlight that this doesn't teach how to use GDB itself -- the guide (and the extension) are mainly useful for people who already use GDB. I take your GitHub approval as a sign that you don't necessarily want to review again, so, I'll merge on Monday if there are no objections. |
|
Thanks @encukou for the touchups to my wording. I'm fine with the PR. 🚢 |
|
Thank you! |
|
Thanks @pablogsal for the PR, and @encukou for merging it 🌮🎉.. I'm working now to backport this PR to: 3.12. |
|
Thanks @pablogsal for the PR, and @encukou for merging it 🌮🎉.. I'm working now to backport this PR to: 3.11. |
Content adapted from https://devguide.python.org/development-tools/gdb/GH- and https://wiki.python.org/moin/DebuggingWithGdb. The original content on the Wiki page came from gdb debug help used by the Launchpad (https://launchpad.net/) team. Thanks to Anatoly Techtonik and user `rmf` for substantial improvements to the Wiki page. The history of the Devguide page follows (with log entries expanded for major content contributions): Hugo van Kemenade, Sat Dec 30 21:22:04 2023 +0200 Hugo van Kemenade, Fri Dec 8 12:04:32 2023 +0200 Erlend E. Aasland & Hugo van Kemenade, Tue Aug 8 22:05:34 2023 +0200 Satish Mishra, Sat Feb 11 13:54:57 2023 +0530 Hugo van Kemenade, Fri Dec 23 17:33:33 2022 +0200 Skip Montanaro, Hugo, Erlend, & Ezio, Fri Nov 4 05:04:23 2022 -0500 Add a GDB tips section to Advanced Tools (pythonGH-977) Adam Turner, Wed Jun 15 21:19:23 2022 +0100 Adam Turner, Tue Jun 14 11:12:26 2022 +0100 Suriyaa, Fri Jun 8 19:39:23 2018 +0200 Jeff Allen, Tue Oct 24 18:12:53 2017 +0100 Jeff Allen, Fri Oct 13 13:43:43 2017 +0100 Mariatta, Wed Jan 4 09:14:55 2017 -0800 Carol Willing, Mon Sep 26 14:50:54 2016 -0700 Zachary Ware, Thu Jul 21 10:42:23 2016 -0500 Georg Brandl, Mon Nov 3 11:28:19 2014 +0100 Add instruction how to activate python-gdb.py Georg Brandl, Sun Mar 9 10:32:01 2014 +0100 Georg Brandl, Tue Apr 3 09:12:53 2012 +0200 Georg Brandl, Sat Mar 5 17:32:35 2011 +0100 Dave Malcolm, Fri Jan 21 12:34:09 2011 -0500 Add documentation on the gdb extension commands provided in libpython.py I adapted this from documentation I wrote for the Fedora wiki: https://fedoraproject.org/wiki/Features/EasierPythonDebuggingGH-New_gdb_commands reformatting it as rst, and making other minor changes Brett Cannon, Thu Jan 20 15:16:52 2011 -0800 Dave Malcolm, Thu Jan 20 16:17:23 2011 -0500 Add some notes on the gdb pretty-printer hooks Antoine Pitrou, Thu Jan 20 21:17:49 2011 +0100 Give an example backtrace Antoine Pitrou, Thu Jan 20 21:03:06 2011 +0100 Expand explanations about gdb support Brett Cannon, Thu Jan 20 11:33:36 2011 -0800 Tweak the gdb support title to fit in better with the devguide. Brett Cannon, Mon Jan 17 21:12:54 2011 +0000 Short README on gdb support. (cherry picked from commit 59057ce) Co-authored-by: Pablo Galindo Salgado <[email protected]> Co-authored-by: Adam Turner <[email protected]> Co-authored-by: anatoly techtonik <[email protected]> Co-authored-by: Antoine Pitrou <[email protected]> Co-authored-by: Brett Cannon <[email protected]> Co-authored-by: Carol Willing <[email protected]> Co-authored-by: Dave Malcolm <[email protected]> Co-authored-by: Erlend E. Aasland <[email protected]> Co-authored-by: Ezio Melotti <[email protected]> Co-authored-by: Georg Brandl <[email protected]> Co-authored-by: Hugo van Kemenade <[email protected]> Co-authored-by: Jeff Allen <[email protected]> Co-authored-by: Mariatta <[email protected]> Co-authored-by: Petr Viktorin <[email protected]> Co-authored-by: Satish Mishra <[email protected]> Co-authored-by: Skip Montanaro <[email protected]> Co-authored-by: Suriyaa <[email protected]> Co-authored-by: Zachary Ware <[email protected]>
|
GH-115857 is a backport of this pull request to the 3.12 branch. |
Content adapted from https://devguide.python.org/development-tools/gdb/GH- and https://wiki.python.org/moin/DebuggingWithGdb. The original content on the Wiki page came from gdb debug help used by the Launchpad (https://launchpad.net/) team. Thanks to Anatoly Techtonik and user `rmf` for substantial improvements to the Wiki page. The history of the Devguide page follows (with log entries expanded for major content contributions): Hugo van Kemenade, Sat Dec 30 21:22:04 2023 +0200 Hugo van Kemenade, Fri Dec 8 12:04:32 2023 +0200 Erlend E. Aasland & Hugo van Kemenade, Tue Aug 8 22:05:34 2023 +0200 Satish Mishra, Sat Feb 11 13:54:57 2023 +0530 Hugo van Kemenade, Fri Dec 23 17:33:33 2022 +0200 Skip Montanaro, Hugo, Erlend, & Ezio, Fri Nov 4 05:04:23 2022 -0500 Add a GDB tips section to Advanced Tools (pythonGH-977) Adam Turner, Wed Jun 15 21:19:23 2022 +0100 Adam Turner, Tue Jun 14 11:12:26 2022 +0100 Suriyaa, Fri Jun 8 19:39:23 2018 +0200 Jeff Allen, Tue Oct 24 18:12:53 2017 +0100 Jeff Allen, Fri Oct 13 13:43:43 2017 +0100 Mariatta, Wed Jan 4 09:14:55 2017 -0800 Carol Willing, Mon Sep 26 14:50:54 2016 -0700 Zachary Ware, Thu Jul 21 10:42:23 2016 -0500 Georg Brandl, Mon Nov 3 11:28:19 2014 +0100 Add instruction how to activate python-gdb.py Georg Brandl, Sun Mar 9 10:32:01 2014 +0100 Georg Brandl, Tue Apr 3 09:12:53 2012 +0200 Georg Brandl, Sat Mar 5 17:32:35 2011 +0100 Dave Malcolm, Fri Jan 21 12:34:09 2011 -0500 Add documentation on the gdb extension commands provided in libpython.py I adapted this from documentation I wrote for the Fedora wiki: https://fedoraproject.org/wiki/Features/EasierPythonDebuggingGH-New_gdb_commands reformatting it as rst, and making other minor changes Brett Cannon, Thu Jan 20 15:16:52 2011 -0800 Dave Malcolm, Thu Jan 20 16:17:23 2011 -0500 Add some notes on the gdb pretty-printer hooks Antoine Pitrou, Thu Jan 20 21:17:49 2011 +0100 Give an example backtrace Antoine Pitrou, Thu Jan 20 21:03:06 2011 +0100 Expand explanations about gdb support Brett Cannon, Thu Jan 20 11:33:36 2011 -0800 Tweak the gdb support title to fit in better with the devguide. Brett Cannon, Mon Jan 17 21:12:54 2011 +0000 Short README on gdb support. (cherry picked from commit 59057ce) Co-authored-by: Pablo Galindo Salgado <[email protected]> Co-authored-by: Adam Turner <[email protected]> Co-authored-by: anatoly techtonik <[email protected]> Co-authored-by: Antoine Pitrou <[email protected]> Co-authored-by: Brett Cannon <[email protected]> Co-authored-by: Carol Willing <[email protected]> Co-authored-by: Dave Malcolm <[email protected]> Co-authored-by: Erlend E. Aasland <[email protected]> Co-authored-by: Ezio Melotti <[email protected]> Co-authored-by: Georg Brandl <[email protected]> Co-authored-by: Hugo van Kemenade <[email protected]> Co-authored-by: Jeff Allen <[email protected]> Co-authored-by: Mariatta <[email protected]> Co-authored-by: Petr Viktorin <[email protected]> Co-authored-by: Satish Mishra <[email protected]> Co-authored-by: Skip Montanaro <[email protected]> Co-authored-by: Suriyaa <[email protected]> Co-authored-by: Zachary Ware <[email protected]>
|
GH-115858 is a backport of this pull request to the 3.11 branch. |
gh-89480: Document the gdb helpers (GH-115657) Content adapted from https://devguide.python.org/development-tools/gdb/GH- and https://wiki.python.org/moin/DebuggingWithGdb. The original content on the Wiki page came from gdb debug help used by the Launchpad (https://launchpad.net/) team. Thanks to Anatoly Techtonik and user `rmf` for substantial improvements to the Wiki page. The history of the Devguide page follows (with log entries expanded for major content contributions): Hugo van Kemenade, Sat Dec 30 21:22:04 2023 +0200 Hugo van Kemenade, Fri Dec 8 12:04:32 2023 +0200 Erlend E. Aasland & Hugo van Kemenade, Tue Aug 8 22:05:34 2023 +0200 Satish Mishra, Sat Feb 11 13:54:57 2023 +0530 Hugo van Kemenade, Fri Dec 23 17:33:33 2022 +0200 Skip Montanaro, Hugo, Erlend, & Ezio, Fri Nov 4 05:04:23 2022 -0500 Add a GDB tips section to Advanced Tools (GH-977) Adam Turner, Wed Jun 15 21:19:23 2022 +0100 Adam Turner, Tue Jun 14 11:12:26 2022 +0100 Suriyaa, Fri Jun 8 19:39:23 2018 +0200 Jeff Allen, Tue Oct 24 18:12:53 2017 +0100 Jeff Allen, Fri Oct 13 13:43:43 2017 +0100 Mariatta, Wed Jan 4 09:14:55 2017 -0800 Carol Willing, Mon Sep 26 14:50:54 2016 -0700 Zachary Ware, Thu Jul 21 10:42:23 2016 -0500 Georg Brandl, Mon Nov 3 11:28:19 2014 +0100 Add instruction how to activate python-gdb.py Georg Brandl, Sun Mar 9 10:32:01 2014 +0100 Georg Brandl, Tue Apr 3 09:12:53 2012 +0200 Georg Brandl, Sat Mar 5 17:32:35 2011 +0100 Dave Malcolm, Fri Jan 21 12:34:09 2011 -0500 Add documentation on the gdb extension commands provided in libpython.py I adapted this from documentation I wrote for the Fedora wiki: https://fedoraproject.org/wiki/Features/EasierPythonDebuggingGH-New_gdb_commands reformatting it as rst, and making other minor changes Brett Cannon, Thu Jan 20 15:16:52 2011 -0800 Dave Malcolm, Thu Jan 20 16:17:23 2011 -0500 Add some notes on the gdb pretty-printer hooks Antoine Pitrou, Thu Jan 20 21:17:49 2011 +0100 Give an example backtrace Antoine Pitrou, Thu Jan 20 21:03:06 2011 +0100 Expand explanations about gdb support Brett Cannon, Thu Jan 20 11:33:36 2011 -0800 Tweak the gdb support title to fit in better with the devguide. Brett Cannon, Mon Jan 17 21:12:54 2011 +0000 Short README on gdb support. (cherry picked from commit 59057ce) Co-authored-by: Pablo Galindo Salgado <[email protected]> Co-authored-by: Adam Turner <[email protected]> Co-authored-by: anatoly techtonik <[email protected]> Co-authored-by: Antoine Pitrou <[email protected]> Co-authored-by: Brett Cannon <[email protected]> Co-authored-by: Carol Willing <[email protected]> Co-authored-by: Dave Malcolm <[email protected]> Co-authored-by: Erlend E. Aasland <[email protected]> Co-authored-by: Ezio Melotti <[email protected]> Co-authored-by: Georg Brandl <[email protected]> Co-authored-by: Hugo van Kemenade <[email protected]> Co-authored-by: Jeff Allen <[email protected]> Co-authored-by: Mariatta <[email protected]> Co-authored-by: Petr Viktorin <[email protected]> Co-authored-by: Satish Mishra <[email protected]> Co-authored-by: Skip Montanaro <[email protected]> Co-authored-by: Suriyaa <[email protected]> Co-authored-by: Zachary Ware <[email protected]>
Content adapted from https://devguide.python.org/development-tools/gdb/GH- and https://wiki.python.org/moin/DebuggingWithGdb. The original content on the Wiki page came from gdb debug help used by the Launchpad (https://launchpad.net/) team. Thanks to Anatoly Techtonik and user `rmf` for substantial improvements to the Wiki page. The history of the Devguide page follows (with log entries expanded for major content contributions): Hugo van Kemenade, Sat Dec 30 21:22:04 2023 +0200 Hugo van Kemenade, Fri Dec 8 12:04:32 2023 +0200 Erlend E. Aasland & Hugo van Kemenade, Tue Aug 8 22:05:34 2023 +0200 Satish Mishra, Sat Feb 11 13:54:57 2023 +0530 Hugo van Kemenade, Fri Dec 23 17:33:33 2022 +0200 Skip Montanaro, Hugo, Erlend, & Ezio, Fri Nov 4 05:04:23 2022 -0500 Add a GDB tips section to Advanced Tools (GH-977) Adam Turner, Wed Jun 15 21:19:23 2022 +0100 Adam Turner, Tue Jun 14 11:12:26 2022 +0100 Suriyaa, Fri Jun 8 19:39:23 2018 +0200 Jeff Allen, Tue Oct 24 18:12:53 2017 +0100 Jeff Allen, Fri Oct 13 13:43:43 2017 +0100 Mariatta, Wed Jan 4 09:14:55 2017 -0800 Carol Willing, Mon Sep 26 14:50:54 2016 -0700 Zachary Ware, Thu Jul 21 10:42:23 2016 -0500 Georg Brandl, Mon Nov 3 11:28:19 2014 +0100 Add instruction how to activate python-gdb.py Georg Brandl, Sun Mar 9 10:32:01 2014 +0100 Georg Brandl, Tue Apr 3 09:12:53 2012 +0200 Georg Brandl, Sat Mar 5 17:32:35 2011 +0100 Dave Malcolm, Fri Jan 21 12:34:09 2011 -0500 Add documentation on the gdb extension commands provided in libpython.py I adapted this from documentation I wrote for the Fedora wiki: https://fedoraproject.org/wiki/Features/EasierPythonDebuggingGH-New_gdb_commands reformatting it as rst, and making other minor changes Brett Cannon, Thu Jan 20 15:16:52 2011 -0800 Dave Malcolm, Thu Jan 20 16:17:23 2011 -0500 Add some notes on the gdb pretty-printer hooks Antoine Pitrou, Thu Jan 20 21:17:49 2011 +0100 Give an example backtrace Antoine Pitrou, Thu Jan 20 21:03:06 2011 +0100 Expand explanations about gdb support Brett Cannon, Thu Jan 20 11:33:36 2011 -0800 Tweak the gdb support title to fit in better with the devguide. Brett Cannon, Mon Jan 17 21:12:54 2011 +0000 Short README on gdb support. (cherry picked from commit 59057ce) Co-authored-by: Pablo Galindo Salgado <[email protected]> Co-authored-by: Adam Turner <[email protected]> Co-authored-by: anatoly techtonik <[email protected]> Co-authored-by: Antoine Pitrou <[email protected]> Co-authored-by: Brett Cannon <[email protected]> Co-authored-by: Carol Willing <[email protected]> Co-authored-by: Dave Malcolm <[email protected]> Co-authored-by: Erlend E. Aasland <[email protected]> Co-authored-by: Ezio Melotti <[email protected]> Co-authored-by: Georg Brandl <[email protected]> Co-authored-by: Hugo van Kemenade <[email protected]> Co-authored-by: Jeff Allen <[email protected]> Co-authored-by: Mariatta <[email protected]> Co-authored-by: Petr Viktorin <[email protected]> Co-authored-by: Satish Mishra <[email protected]> Co-authored-by: Skip Montanaro <[email protected]> Co-authored-by: Suriyaa <[email protected]> Co-authored-by: Zachary Ware <[email protected]> * Update (downdate?) this to Python 3.11 --------- Co-authored-by: Pablo Galindo Salgado <[email protected]> Co-authored-by: Adam Turner <[email protected]> Co-authored-by: anatoly techtonik <[email protected]> Co-authored-by: Antoine Pitrou <[email protected]> Co-authored-by: Brett Cannon <[email protected]> Co-authored-by: Carol Willing <[email protected]> Co-authored-by: Dave Malcolm <[email protected]> Co-authored-by: Erlend E. Aasland <[email protected]> Co-authored-by: Ezio Melotti <[email protected]> Co-authored-by: Georg Brandl <[email protected]> Co-authored-by: Hugo van Kemenade <[email protected]> Co-authored-by: Jeff Allen <[email protected]> Co-authored-by: Mariatta <[email protected]> Co-authored-by: Petr Viktorin <[email protected]> Co-authored-by: Satish Mishra <[email protected]> Co-authored-by: Skip Montanaro <[email protected]> Co-authored-by: Suriyaa <[email protected]> Co-authored-by: Zachary Ware <[email protected]>
Content adapted from https://devguide.python.org/development-tools/gdb/# and https://wiki.python.org/moin/DebuggingWithGdb. The original content on the Wiki page came from gdb debug help used by the Launchpad (https://launchpad.net/) team. Thanks to Anatoly Techtonik and user `rmf` for substantial improvements to the Wiki page. The history of the Devguide page follows (with log entries expanded for major content contributions): Hugo van Kemenade, Sat Dec 30 21:22:04 2023 +0200 Hugo van Kemenade, Fri Dec 8 12:04:32 2023 +0200 Erlend E. Aasland & Hugo van Kemenade, Tue Aug 8 22:05:34 2023 +0200 Satish Mishra, Sat Feb 11 13:54:57 2023 +0530 Hugo van Kemenade, Fri Dec 23 17:33:33 2022 +0200 Skip Montanaro, Hugo, Erlend, & Ezio, Fri Nov 4 05:04:23 2022 -0500 Add a GDB tips section to Advanced Tools (python#977) Adam Turner, Wed Jun 15 21:19:23 2022 +0100 Adam Turner, Tue Jun 14 11:12:26 2022 +0100 Suriyaa, Fri Jun 8 19:39:23 2018 +0200 Jeff Allen, Tue Oct 24 18:12:53 2017 +0100 Jeff Allen, Fri Oct 13 13:43:43 2017 +0100 Mariatta, Wed Jan 4 09:14:55 2017 -0800 Carol Willing, Mon Sep 26 14:50:54 2016 -0700 Zachary Ware, Thu Jul 21 10:42:23 2016 -0500 Georg Brandl, Mon Nov 3 11:28:19 2014 +0100 Add instruction how to activate python-gdb.py Georg Brandl, Sun Mar 9 10:32:01 2014 +0100 Georg Brandl, Tue Apr 3 09:12:53 2012 +0200 Georg Brandl, Sat Mar 5 17:32:35 2011 +0100 Dave Malcolm, Fri Jan 21 12:34:09 2011 -0500 Add documentation on the gdb extension commands provided in libpython.py I adapted this from documentation I wrote for the Fedora wiki: https://fedoraproject.org/wiki/Features/EasierPythonDebugging#New_gdb_commands reformatting it as rst, and making other minor changes Brett Cannon, Thu Jan 20 15:16:52 2011 -0800 Dave Malcolm, Thu Jan 20 16:17:23 2011 -0500 Add some notes on the gdb pretty-printer hooks Antoine Pitrou, Thu Jan 20 21:17:49 2011 +0100 Give an example backtrace Antoine Pitrou, Thu Jan 20 21:03:06 2011 +0100 Expand explanations about gdb support Brett Cannon, Thu Jan 20 11:33:36 2011 -0800 Tweak the gdb support title to fit in better with the devguide. Brett Cannon, Mon Jan 17 21:12:54 2011 +0000 Short README on gdb support. Co-authored-by: Adam Turner <[email protected]> Co-authored-by: anatoly techtonik <[email protected]> Co-authored-by: Antoine Pitrou <[email protected]> Co-authored-by: Brett Cannon <[email protected]> Co-authored-by: Carol Willing <[email protected]> Co-authored-by: Dave Malcolm <[email protected]> Co-authored-by: Erlend E. Aasland <[email protected]> Co-authored-by: Ezio Melotti <[email protected]> Co-authored-by: Georg Brandl <[email protected]> Co-authored-by: Hugo van Kemenade <[email protected]> Co-authored-by: Jeff Allen <[email protected]> Co-authored-by: Mariatta <[email protected]> Co-authored-by: Petr Viktorin <[email protected]> Co-authored-by: Satish Mishra <[email protected]> Co-authored-by: Skip Montanaro <[email protected]> Co-authored-by: Suriyaa <[email protected]> Co-authored-by: Zachary Ware <[email protected]>
Content adapted from https://devguide.python.org/development-tools/gdb/# and https://wiki.python.org/moin/DebuggingWithGdb. The original content on the Wiki page came from gdb debug help used by the Launchpad (https://launchpad.net/) team. Thanks to Anatoly Techtonik and user `rmf` for substantial improvements to the Wiki page. The history of the Devguide page follows (with log entries expanded for major content contributions): Hugo van Kemenade, Sat Dec 30 21:22:04 2023 +0200 Hugo van Kemenade, Fri Dec 8 12:04:32 2023 +0200 Erlend E. Aasland & Hugo van Kemenade, Tue Aug 8 22:05:34 2023 +0200 Satish Mishra, Sat Feb 11 13:54:57 2023 +0530 Hugo van Kemenade, Fri Dec 23 17:33:33 2022 +0200 Skip Montanaro, Hugo, Erlend, & Ezio, Fri Nov 4 05:04:23 2022 -0500 Add a GDB tips section to Advanced Tools (python#977) Adam Turner, Wed Jun 15 21:19:23 2022 +0100 Adam Turner, Tue Jun 14 11:12:26 2022 +0100 Suriyaa, Fri Jun 8 19:39:23 2018 +0200 Jeff Allen, Tue Oct 24 18:12:53 2017 +0100 Jeff Allen, Fri Oct 13 13:43:43 2017 +0100 Mariatta, Wed Jan 4 09:14:55 2017 -0800 Carol Willing, Mon Sep 26 14:50:54 2016 -0700 Zachary Ware, Thu Jul 21 10:42:23 2016 -0500 Georg Brandl, Mon Nov 3 11:28:19 2014 +0100 Add instruction how to activate python-gdb.py Georg Brandl, Sun Mar 9 10:32:01 2014 +0100 Georg Brandl, Tue Apr 3 09:12:53 2012 +0200 Georg Brandl, Sat Mar 5 17:32:35 2011 +0100 Dave Malcolm, Fri Jan 21 12:34:09 2011 -0500 Add documentation on the gdb extension commands provided in libpython.py I adapted this from documentation I wrote for the Fedora wiki: https://fedoraproject.org/wiki/Features/EasierPythonDebugging#New_gdb_commands reformatting it as rst, and making other minor changes Brett Cannon, Thu Jan 20 15:16:52 2011 -0800 Dave Malcolm, Thu Jan 20 16:17:23 2011 -0500 Add some notes on the gdb pretty-printer hooks Antoine Pitrou, Thu Jan 20 21:17:49 2011 +0100 Give an example backtrace Antoine Pitrou, Thu Jan 20 21:03:06 2011 +0100 Expand explanations about gdb support Brett Cannon, Thu Jan 20 11:33:36 2011 -0800 Tweak the gdb support title to fit in better with the devguide. Brett Cannon, Mon Jan 17 21:12:54 2011 +0000 Short README on gdb support. Co-authored-by: Adam Turner <[email protected]> Co-authored-by: anatoly techtonik <[email protected]> Co-authored-by: Antoine Pitrou <[email protected]> Co-authored-by: Brett Cannon <[email protected]> Co-authored-by: Carol Willing <[email protected]> Co-authored-by: Dave Malcolm <[email protected]> Co-authored-by: Erlend E. Aasland <[email protected]> Co-authored-by: Ezio Melotti <[email protected]> Co-authored-by: Georg Brandl <[email protected]> Co-authored-by: Hugo van Kemenade <[email protected]> Co-authored-by: Jeff Allen <[email protected]> Co-authored-by: Mariatta <[email protected]> Co-authored-by: Petr Viktorin <[email protected]> Co-authored-by: Satish Mishra <[email protected]> Co-authored-by: Skip Montanaro <[email protected]> Co-authored-by: Suriyaa <[email protected]> Co-authored-by: Zachary Ware <[email protected]>
Content adapted from https://devguide.python.org/development-tools/gdb/# and https://wiki.python.org/moin/DebuggingWithGdb. The original content on the Wiki page came from gdb debug help used by the Launchpad (https://launchpad.net/) team. Thanks to Anatoly Techtonik and user `rmf` for substantial improvements to the Wiki page. The history of the Devguide page follows (with log entries expanded for major content contributions): Hugo van Kemenade, Sat Dec 30 21:22:04 2023 +0200 Hugo van Kemenade, Fri Dec 8 12:04:32 2023 +0200 Erlend E. Aasland & Hugo van Kemenade, Tue Aug 8 22:05:34 2023 +0200 Satish Mishra, Sat Feb 11 13:54:57 2023 +0530 Hugo van Kemenade, Fri Dec 23 17:33:33 2022 +0200 Skip Montanaro, Hugo, Erlend, & Ezio, Fri Nov 4 05:04:23 2022 -0500 Add a GDB tips section to Advanced Tools (python#977) Adam Turner, Wed Jun 15 21:19:23 2022 +0100 Adam Turner, Tue Jun 14 11:12:26 2022 +0100 Suriyaa, Fri Jun 8 19:39:23 2018 +0200 Jeff Allen, Tue Oct 24 18:12:53 2017 +0100 Jeff Allen, Fri Oct 13 13:43:43 2017 +0100 Mariatta, Wed Jan 4 09:14:55 2017 -0800 Carol Willing, Mon Sep 26 14:50:54 2016 -0700 Zachary Ware, Thu Jul 21 10:42:23 2016 -0500 Georg Brandl, Mon Nov 3 11:28:19 2014 +0100 Add instruction how to activate python-gdb.py Georg Brandl, Sun Mar 9 10:32:01 2014 +0100 Georg Brandl, Tue Apr 3 09:12:53 2012 +0200 Georg Brandl, Sat Mar 5 17:32:35 2011 +0100 Dave Malcolm, Fri Jan 21 12:34:09 2011 -0500 Add documentation on the gdb extension commands provided in libpython.py I adapted this from documentation I wrote for the Fedora wiki: https://fedoraproject.org/wiki/Features/EasierPythonDebugging#New_gdb_commands reformatting it as rst, and making other minor changes Brett Cannon, Thu Jan 20 15:16:52 2011 -0800 Dave Malcolm, Thu Jan 20 16:17:23 2011 -0500 Add some notes on the gdb pretty-printer hooks Antoine Pitrou, Thu Jan 20 21:17:49 2011 +0100 Give an example backtrace Antoine Pitrou, Thu Jan 20 21:03:06 2011 +0100 Expand explanations about gdb support Brett Cannon, Thu Jan 20 11:33:36 2011 -0800 Tweak the gdb support title to fit in better with the devguide. Brett Cannon, Mon Jan 17 21:12:54 2011 +0000 Short README on gdb support. Co-authored-by: Adam Turner <[email protected]> Co-authored-by: anatoly techtonik <[email protected]> Co-authored-by: Antoine Pitrou <[email protected]> Co-authored-by: Brett Cannon <[email protected]> Co-authored-by: Carol Willing <[email protected]> Co-authored-by: Dave Malcolm <[email protected]> Co-authored-by: Erlend E. Aasland <[email protected]> Co-authored-by: Ezio Melotti <[email protected]> Co-authored-by: Georg Brandl <[email protected]> Co-authored-by: Hugo van Kemenade <[email protected]> Co-authored-by: Jeff Allen <[email protected]> Co-authored-by: Mariatta <[email protected]> Co-authored-by: Petr Viktorin <[email protected]> Co-authored-by: Satish Mishra <[email protected]> Co-authored-by: Skip Montanaro <[email protected]> Co-authored-by: Suriyaa <[email protected]> Co-authored-by: Zachary Ware <[email protected]>
Content adapted from https://devguide.python.org/development-tools/gdb/# and https://wiki.python.org/moin/DebuggingWithGdb
📚 Documentation preview 📚: https://cpython-previews--115657.org.readthedocs.build/