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:
We have built our API using Flask, so select Flask, as shown in the following screenshot:
VS Code will generate the following launch.json
file in the .vscode
folder:
{ Â Â Â Â Â Â Â Â Â Â Â Â 'name':Â 'Python:Â Launch', Â Â Â Â Â Â Â Â Â Â Â Â 'type':Â 'python', Â Â Â Â Â Â Â Â Â Â Â Â 'request':Â ...