Django go through the code

Is it possible to execute a step through the code in django (I mean the step during debugging)

+3
source share
3 answers

In order to respond to debugging, instead of phasing debugging in the structure itself, it is more preferable that the Django community provide unit tests. If you are creating a module, Django provides tools for testing applications . For end-to-end debugging, you may need an IDE to process it: AFAIK Django does not provide the ability to do this.

+1
source

, , Python Debugger, pdb. Django . , Django, Django, import pdb; pdb.set_trace() , , , , Django.

+5

, .

, , :

import pdb; pdb.set_trace()

, .

+2

Source: https://habr.com/ru/post/1778362/


All Articles