qosacargo.blogg.se

Visual studio ide for mac
Visual studio ide for mac










If you’re still in launch.json & press F5, compiler will return error of invalid attributes in launch.jsonbbecause it tries to run launch.json as current file. Switching to hello.py in the editor is the key.

visual studio ide for mac

Save launch.json, switch to hello.py in the editor, then run the debugger by selecting the green arrow in the Debug toolbar or pressing F5.

visual studio ide for mac visual studio ide for mac

To automatically stop the debugger on the first line when the program starts, add a "stopOnEntry": true setting to the "Python: Current File" configuration in launch.json, so that the whole configuration appears as follows: , Select “Python: Current File”, which is the configuration that runs the current file shown in the editor using the currently selected Python interpreter.












Visual studio ide for mac