connectors icon indicating copy to clipboard operation
connectors copied to clipboard

Using a Python remote debugger for docker-compose local development

Open julienloizelet opened this issue 1 year ago • 1 comments

Prerequisites

  • [x] I read the Deployment and Setup section of the OpenCTI documentation as well as the Troubleshooting page and didn't find anything relevant to my problem.
  • [x] I went through old GitHub issues and couldn't find anything relevant
  • [x] I googled the issue and didn't find anything relevant

Description

I would like to know if there is any resources (documentation, blog, etc...) talking about how to set up a Python remote debugger so I can use breakpoints as I'm working locally, with docker-compose, on an internal enrichment connector ?

I've tried to configure Pycharm by following the documentation but without success: none of my breakpoints are triggered when I enrich an object to which my connector is linked.

Any indication, even for VS Code or another IDE (or whatever works) will be appreciated: I just want to be able to use breakpoints for debugging an internal enrichment connector.

Thanks !

Environment

Reproducible Steps

Additional information

julienloizelet avatar May 14 '24 09:05 julienloizelet

For connector development I run opencti on wsl and then connect to wsl via vscode to set my breakpoints etc.

annoyingapt avatar May 15 '24 08:05 annoyingapt