blob: 59430a25910f19af2b09ee8a4694742c41a19ce5 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
# Debugging Tools
## Python
```bash
python -m pdb script.py
python -m traceback your_script.py
pytest -x -vv tests/test_target.py
```
## Node.js
```bash
node --inspect-brk app.js
node --trace-warnings app.js
npm test -- --runInBand
```
## Git
```bash
git bisect start
git bisect bad
git bisect good <known-good-commit>
```
## Shell
```bash
bash -n script.sh
bash -x script.sh
shellcheck script.sh
```
|