Skip to content

Commit fdf0c51

Browse files
committed
new debugging resources
1 parent f8c61b7 commit fdf0c51

File tree

3 files changed

+50
-3
lines changed

3 files changed

+50
-3
lines changed

content/pages/04-web-development/38-debugging.markdown

Lines changed: 46 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,42 @@ developer has to learn how to debug code in order to write programs that
2121
work as correctly as time and budget allow.
2222

2323

24-
### Debugging resources
24+
### Debugging tools
25+
There are many debugging tools, some of which are built into
26+
[IDEs](/text-editors-ides.html) like [PyCharm](/pycharm.html) and others
27+
that are standalone applications. The following list contains mostly
28+
standalone tools that you can use in any
29+
[development environment](/development-environments.html).
30+
31+
* [pdb](https://docs.python.org/3/library/pdb.html) is a debugger built
32+
into the Python standard library and is the one most developers come across
33+
first when trying to debug their programs.
34+
35+
* [Web-PDB](https://github.com/romanvm/python-web-pdb) provides a
36+
web-based user interface for pdb to make it easier to understand what is
37+
happening while inspecting your running code.
38+
39+
* [wdb](https://github.com/Kozea/wdb) uses [WebSockets](/websockets.html)
40+
to allow you to debug running Python code from a web browser.
41+
42+
* [Pyflame](http://eng.uber.com/pyflame/)
43+
([source code](https://github.com/uber/pyflame)) is a profiling tool
44+
that generates [flame graphs](http://www.brendangregg.com/flamegraphs.html)
45+
for executing Python program code.
46+
47+
* [objgraph](https://mg.pov.lt/objgraph/)
48+
([source code](https://github.com/mgedmin/objgraph)) uses
49+
[graphviz](https://www.graphviz.org/) to draw the connections between
50+
Python objects running in an application
51+
52+
53+
### Python-specific Debugging tutorials
54+
The Python ecosystem has a range of tools to help with debugging your code.
55+
These tutorials are specific to Python libraries like pdb and objgraph.
56+
2557
* [Debugging your Python code](http://howchoo.com/g/zgi2y2iwyze/debugging-your-python-code)
2658
walks through a scenario where
27-
[pdb](https://docs.python.org/2/library/pdb.html)
59+
[pdb](https://docs.python.org/3/library/pdb.html)
2860
can be used to find a defect in a block of Python code.
2961

3062
* [pdb - Interactive Debugger](https://pymotw.com/2/pdb/) is featured on
@@ -38,6 +70,18 @@ work as correctly as time and budget allow.
3870
* [Debugging in Python](https://pythonconquerstheuniverse.wordpress.com/2009/09/10/debugging-in-python/)
3971
elaborates on what pdb does and how it can be used.
4072

73+
74+
### General debugging resources
75+
The following resources are not specific to Python development but
76+
give solid programming language-agnostic debugging advice.
77+
78+
* [The art of debugging](https://remysharp.com/2015/10/14/the-art-of-debugging)
79+
provides a whirlwind overview for how to fix issues in your code.
80+
4181
* [How to debug JavaScript errors](https://rollbar.com/guides/how-to-debug-javascript/)
4282
introduces some key debugging tools such as source maps that make
4383
identifying errors on the client side much easier during development.
84+
85+
* [Linux debugging tools you'll love](https://jvns.ca/debugging-zine.pdf)
86+
is an awesome comic that covers the Linux ecosystem for debugging.
87+

content/pages/meta/00-change-log.markdown

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@ on GitHub.
1616

1717
## 2018
1818
### September
19+
* A ton of new tools and links on the [debugging](/debugging.html) page.
20+
* Added a starter [Django REST Framework](/django-rest-framework-drf.html)
21+
page.
1922
* New [web app security](/web-application-security.html),
2023
[task queue](/task-queues.html) and [WebRTC](/webrtc.html) resources.
2124
* Added a bunch of new resources across the site and removed a few out of

theme/templates/table-of-contents.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ <h4>4.10 <a href="/application-programming-interfaces.html">Web APIs</a></h4>
128128
<div class="tc tds"><a href="/webhooks.html">Webhooks</a></div>
129129
<div class="tc tds"><a href="/bots.html">Bots</a></div>
130130
<h4>4.11 <a href="/api-creation.html">API creation</a></h4>
131-
<div class="tc tds sn">Django REST Framework</div>
131+
<div class="tc tds"><a href="/django-rest-framework-drf.html">Django REST Framework</a></div>
132132
<div class="tc tds sn">API Star</div>
133133
<h4>4.12 <a href="/api-integration.html">API integration</a></h4>
134134
<div class="tc tds"><a href="/twilio.html">Twilio</a></div>

0 commit comments

Comments
 (0)