Launch VS and create new python application Add an input('>') or raw_input('>') at the top of your code - depends on version of python Add some more python code after that with breakpoint(s) Start ...
途中で値を確認したい時に、以下のように標準モジュールのpdbを下記のように都度インポートしていた。
JustMyCode : false is tested. Not working. Same test on two different clean machine which never installed python and vscode before. the debug works fine when a virtual environment create with command ...
breakpoint() is a built-in function that allows you to pause and debug your Python code. # コードの途中でbreakpoint()を呼ぶと... def calculate_total(prices): total = 0 for price in prices: breakpoint() # ← ...