Skip to content

Debug

--debug

Show debug messages during code generation.

Enables verbose debug output to help troubleshoot issues with schema parsing or code generation. Requires the debug extra to be installed.

Usage

datamodel-codegen --input schema.json --debug # (1)!
  1. --debug - the option documented here

Requires extra dependency

The debug feature requires the debug extra:

pip install 'datamodel-code-generator[debug]'