Skip to content

arendondiosa/debugging-vscode

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Introduction to debugging using VSCode

Some examples using different packages: Flask and Django.

Requirements

  • Python >= 3.6

Installation

pip install -r requirements.txt

Run

Flask app

Execute the application using Flask

cd flask_app
python app.py

Expected output: The application is running on port 5000

 * Serving Flask app "app" (lazy loading)
 * Environment: production
   WARNING: This is a development server. Do not use it in a production deployment.
   Use a production WSGI server instead.
 * Debug mode: off
 * Running on http://127.0.0.1:5000/ (Press CTRL+C to quit)

Django app

Before execute the application, it's necessary to update the migrations

cd django_app
python manage.py migrate

Create an Admin user

python manage.py createsuperuser

Execute the application using Django

python manage.py runserver

Expected output: The application is running on port 8000

Watching for file changes with StatReloader
Performing system checks...

System check identified no issues (0 silenced).
March 15, 2021 - 02:43:54
Django version 3.1.7, using settings 'django_app.settings'
Starting development server at http://127.0.0.1:8000/
Quit the server with CONTROL-C.

Scripts

cd scripts
python calculator.py

About

Introduction to debugging using VSCode

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published