Debug step execution in Python (Bottle, Intellij)

It took a lot of time to execute the step, so make a note

# bottle install
pip install bottle

index.py


#Specify hostname and port according to debug settings
import pydevd
pydevd.settrace('localhost', port=8080, stdoutToServer=True, stderrToServer=True)

from bottle import Bottle, run, template

apps = Bottle()

@apps.get('/index')  # or @route('/login')
def login():
    print 'Hello!' #Try to put a break point
    return template("index")

run(app=apps, host='localhost', port=8080)

views/index.tpl


World!

Recommended Posts

Debug step execution in Python (Bottle, Intellij)
Python package management in IntelliJ
External command execution in Python
Measure function execution time in Python
Python unittest module execution in vs2017
The first step in Python Matplotlib
Load the remote Python SDK in IntelliJ
I can't debug python scripts in Eclipse
Delayed segment tree in Python (debug request)
Parallel task execution using concurrent.futures in Python
Quadtree in Python --2
Python in optimization
CURL in python
Metaprogramming in Python
Python 3.3 in Anaconda
Geocoding in python
SendKeys in Python
Meta-analysis in Python
Unittest in python
The first step in the constraint satisfaction problem in Python
Get keystrokes during background execution in Python (windows)
Epoch in Python
Discord in Python
Sudoku in Python
DCI in Python
quicksort in python
nCr in python
N-Gram in Python
Programming in python
Plink in Python
Constant in python
Lifegame in Python.
FizzBuzz in Python
Sqlite in python
StepAIC in Python
N-gram in python
LINE-Bot [0] in Python
Csv in python
Disassemble in Python
Reflection in Python
Constant in python
nCr in Python.
format in python
Scons in Python3
Puyo Puyo in python
python in virtualenv
PPAP in Python
Quad-tree in Python
Reflection in Python
Chemistry in Python
Hashable in python
DirectLiNGAM in Python
LiNGAM in Python
Flatten in python
flatten in python
Ruby, Python code fragment execution of selection in Emacs
How to create an image uploader in Bottle (Python)
Reproduce the execution example of Chapter 4 of Hajipata in Python
Reproduce the execution example of Chapter 5 of Hajipata in Python
Sorted list in Python
Daily AtCoder # 36 in Python