title: How to debug Django custom management command using VS Code
body: <p>I am trying to debug a custom management command using Visual Studio Code.</p>
  
  <p>For this I have gone through the official VS Code tutorials for working with Python and Django, and I have managed to get debugging to work while following these tutorials.</p>
  
  <p><a href="https://code.visualstudio.com/docs/python/python-tutorial" rel="noreferrer">VS Code Python tutorial</a> /
  <a href="https://code.visualstudio.com/docs/python/tutorial-django" rel="noreferrer">VS Code Django tutorial</a></p>
  
  <p>The problem is that for a Python script (no Django), the debugger works because I run a  specific file (by pressing f5) while the file's tab is open. Django debugging works because VS Code knows when a browser request causes my Django app to hit a break-point I entered in VS Code.</p>
  
  <p>But a custom management command is run differently. For this I type the following in the console:</p>
  
  <p><code>python manage.py name_of_management_command</code></p>
  
  <p>How do I debug this in VS Code?</p>