vrijdag 13 november 2026

Databricks series : Debugging Python code in Visual Studio Code with arguments (Part IX)

Introduction

It took me a while to figure it out how to debug with Visual Studio Code when you have an argument in the code. These are the steps : First set a breakpoint,  go the "Run and Debug Pane" and then file in the parameter. 


We are building upon what we already have :


Breakpoint

Click on the screen left from the code window and a red appears



This is the breakpoint.


Run and Debug window

Next step is to go the 'Run and Debug' Pane. This is the Icon on the left with a play symbol and debug on top of that.




Click in Run and Debug:




Choose Python File with Arguments, and the following "Command Line Arguments" window appears




In my case,  I enter the word "customers" :




Hennie

Geen opmerkingen:

Een reactie posten