spiside / pdb-tutorial Goto Github PK
View Code? Open in Web Editor NEWA simple tutorial about effectively using pdb
License: MIT License
A simple tutorial about effectively using pdb
License: MIT License
Here is korean version : https://github.com/mingrammer/pdb-tutorial
Thanks for awesome tutorial
Thanks for this great tutorial. This was very helpful in understanding how to use PDB.
I noticed a few issues, so I thought I could help improve this further
(Pdb) b 35 Breakpoint 1 at /Users/Development/pdb-tutorial/dicegame/runner.py(32)run() (Pdb) c
Perhaps this is a typo.
I also noticed a few typos and mismatches in README.md, which I corrected here
As far as suggestions for improvement, perhaps some information about bt
, u
, d
can be included
It would be helpful to introduce the way to invoke pdb.py as a script:
python -m pdb myscript.py
Looks like the sentence
The method
set_trace()
hard codes a breakpoint at the line you place it the command.
has a typo or just weirdly phrased.
With the help of @mingrammer, pdb-tutorial has been translated into Korean! This got me thinking whether there are other translations that would be helpful to readers. If you would like to see the tutorial written in another language, or are interested in helping translate the tutorial, please feel free to discuss in this thread.
In the solution for runner.py runner.consecutive_wins is not defined and it should be reset if a wrong answer is given.
Furthermore, I get a NameError if I type 'y' to continue playing so I would suggest using raw_input() in both the excercise and the solution.
There is a difference of 1 between the actual line number and the number in the tutorial
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.