New tutorial section: debugging with IPython
- Lenguaje dominante
- Python
- Estrellas
- 16.8k
- Forks
- 4.5k
- Merge medio
- 1 d 2 h
- PR fusionados (30 d)
- 6
Descripción
My colleague @lrcouto did some extensive research on debugging techniques for IPython and for now we've added those to the Kedro docs, but we wanted to ask if you'd accept a PR with a new section under "Tutorial" called "How to debug with IPython". Could include:
- `%debug` for interactive debugging
- `%pdb` for postmortem debugging
- `%run` for running specific files
- Some cool GIFs
- An (i)pdb cheatsheet:
| Command | Description |
| ----------------- | ----------------------------------------------------- |
| `list` | Show the current location in the file |
| `h(elp)` | Show a list of commands, or find help on a specific command |
| `q(uit)` | Quit the debugger and the program |
| `c(ontinue)` | Quit the debugger, continue in the program |
| `n(ext)` | Go to the next step of the program |
| `` | Repeat the previous command |
| `p(rint)` | Print variables |
| `s(tep)` | Step into a subroutine |
| `r(eturn)` | Return out of a subroutine |
| `b(reak)` | Insert a breakpoint |
| `a(rgs)` | Print the argument list of the current function |
Guía de contribución
Evaluación
Este issue todavía no se ha evaluado.