In order to enable debugging for your Django app running in a Docker container, follow these steps using Visual Studio (Code):
- Add
ptvsd
to your requirements.txt file
ptvsd == 4.3.2
- To your
launch.json
, add this:
import { Component, OnInit } from '@angular/core'; | |
import { isNil } from 'lodash'; | |
import { ActivatedRoute, Router, NavigationEnd } from '@angular/router'; | |
import { Title } from '@angular/platform-browser'; | |
@Component({ | |
selector: 'l2-app', // <my-app></my-app> | |
templateUrl: './app.component.html', | |
styleUrls: ['./app.component.scss'], | |
}) |