codeforpdx / opentransit-metrics

Prototype of public transit data visualization system
https://opentransit-pdx.herokuapp.com/
MIT License
7 stars 8 forks source link

Add VS Code debug configuration #48

Closed nkanderson closed 1 year ago

nkanderson commented 2 years ago

Proposed changes

Adds VS Code configuration and docs for debugging the Flask app and Python command line scripts.

nkanderson commented 2 years ago

Thanks for taking a look @liamphmurphy! That's unfortunate that this config hasn't worked for hitting any specified breakpoints for you yet 🤔 Were there any errors that popped up when you tried it? I saw some messages that I believe were related to the pathMappings, but I was able to hit breakpoints. For the docker-compose.debug and Python: Attach debugger, I created a breakpoint in metrics-api.py that I was able to hit. And for the other debug config, I hit several breakpoints I'd created in gtfs.py (though it did take a very long time to start up and run, and eventually get to those parts of the code).

nkanderson commented 1 year ago

Ok, @sidetrackedmind just pushed those changes we talked about!