Hi peeps! I'm trying to debug my hubspot tap by adding breakpoints into it, but I'm unsure how to operate. Any suggestions?
Currently I'm trying to configure a launch.json file in vscode to run "meltano invoke tap-hubspot", but I'm unfamiliar with the concept
c
christoph
04/03/2022, 10:56 PM
Hi @Stéphane Burwash Have you tried any specific debuggers? I assume you want to use pdb? A simple
pdb.set_trace()
line should drop you into the pdb shell when you run your tap.
s
Stéphane Burwash
04/04/2022, 12:33 PM
Hi @christoph thanks for the reply! I am quite new to the game, so I was just planning on using the default debugger when using vscode (with the launch.json), but I did not know what file to point it to. But I will definitely try pdb trace, thank you so much!
c
christoph
04/05/2022, 1:51 AM
I'm not very familiar with VS Code. In my experience, the debugger that comes with the language always seems to be the most straight-forward and easiest one to use and will have the best documentation. Considering that pdb comes with Python by default, pdb is what I prefer for Python debugging. I'm not sure what kind of IDE the majority of the Meltano community uses. That would make for an interesting poll though. 🙂