Debugging the Python API
By now, we are done with the Angular app, Node.js, and the Java API. Next, let's look into setting up debugging for our Python project. Open the project folder in VS Code and go to the debug tab. Create the launch.json
file. As shown in the following screenshot, select the environment as Python:
Figure 6.41 – Select a Python environment in the command palette
We have built our API using Flask, so select Flask, as shown in the following screenshot:
Figure 6.42 – Select Flask
VS Code will generate the following launch.json
file in the .vscode
folder:
{ 'name': 'Python: Launch', 'type': 'python', 'request': ...