3/15/2024 0 Comments Run python in visual studio![]() vscode directory, create a file named launch.json if it does not already exist. vscode/settings.json file should have a line something like this: "python.pythonPath": "/Users/kmilligan/.virtualenvs/flask/bin/python" Select Preferences > Workspace Settings from the menu. Here’s how you can debug your app without modifying your code:įirst, be sure you have your virtual environment configured in VSCode (you are using a virtual environment, right?). Open the VS Code: Install the Python extension from your extensions: Create a project workspace/folder. You could add a run script just for debugging, but that isn’t necessary. If you are using Flask 0.11.x, chances are you use the new “flask” command to launch your app. Originally documented by KEATH MILLIGAN on 13 October 2016 Also, make sure you have correctly installed it on your system by the following command: python -version Python 3.7.2. ![]() Debugging Flask Applications is as simple as debugging any other Python Application. Just visit this link and install the appropriate version of python in your machine.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |