Note Starting a debugging session through the Debug Panel, F5 or Debug > Start Debugging, when no configuration exists will also bring up the debug configuration menu. For now, in the Select a debug configuration menu that appears, select Python File. Select the settings button (circled in the image above) or use the Debug > Open configurations menu command.Ī configuration menu will open from the Command Palette allowing you to choose the type of debug configuration you want for the opened file. To generate a launch.json file with Python configurations, do the following steps: If you don’t yet have any configurations defined, you’ll see “No Configurations” in the drop-down list, and a dot on the settings icon: To initialize debug configurations, first select the Debug View in the sidebar: Note In order to change debugging configuration, your code must be stored in a folder. Configurations are defined in a launch.json file that’s stored in a. Initialize configurationsĪ configuration drives VS Code’s behavior during a debugging session. This article addresses only those considerations that are specific to Python, mainly Python-specific debugging configurations, including the necessary steps for specific app types and remote debugging. Both tutorials demonstrate core skills like setting breakpoints and stepping through code.įor general debugging features such as inspecting variables, setting breakpoints, and other activities that aren’t language-dependent, review VS Code debugging. For a short walkthrough of basic debugging, see Tutorial - Configure and run the debugger. The Python extension supports debugging of a number of types of Python applications.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |