Insert the debugger with nose

Normal pdb doesn't work when debugging with nose, so use pdb for nose.

# from nose.tools import pdb; pdb.set_trace() #This is wrong
from nose.tools import set_trace; set_trace() #Stop here

This will launch the debugger.

Fix

I wrote it wrong before. The correct answer was import set_trace instead of import pdb.

Recommended Posts

Insert the debugger with nose
I was hooked for 2 minutes with the Python debugger pdb
Kill the process with sudo kill -9
Insert from pd.DataFrame with psycopg2
Guess the password with klee
gethostbyaddr () communicates with the outside
scraping the Nikkei 225 with playwright-python
Check the code with flake8
Calibrate the model with PyCaret
Call the API with python3.
Decrypt the QR code with CNN
Color the integration interval with matplotlib.pyplot
Use the preview feature with aws-cli
Follow the file hierarchy with fts
Specifying the date with the Twitter API
The universe is dangerous with PyEphem
Pave the road with combinatorial optimization
Run the app with Flask + Heroku
Get the weather with Python requests
Get the weather with Python requests 2
Find the Levenshtein Distance with python
Explore the maze with reinforcement learning
Finding the simplest mistakes with OpenCV
Hit the Etherpad-lite API with Python
Install the Python plugin with Netbeans 8.0.2
Output the call graph with PyCallGraph
Install the data files with setup.py
Download the file deployed with appcfg.py
Debug the script with Sakura Editor
I liked the tweet with python. ..
Using cgo with the go command
Bulk Insert Pandas DataFrame with psycopg2
Master the type with Python [Python 3.9 compatible]
Hit the top command with htop
Try blurring the image with opencv2
Validate the learning model with Pylearn2
Open the file with the default app
Prepare the development environment with anyenv