Fides Documentation – Ethyca

Debugging Fides in IntelliJ IDEA Ultimate

This guide will show how to use the IntelliJ debugger with Fides running in Docker. The setup for PyCharm Professional should be very similar.

Prerequisites

Setup

Connect to Docker daemon

This step will allow the IDE to connect to Docker Desktop.

Go to: Settings/Preferences -> Docker -> +

See the screenshot below:

Configure Python Remote Interpreter

Define a Docker-based remote interpreter.

Go to: File -> Project Structure... -> Platform Settings -> SDKs -> +

After clicking OK the Remote Python Docker Compose should be listed as an SDK.

See screenshots below:

Run/Debug Configuration

Set up a Run/Debug Configuration so that breakpoints can be hit in the f source code.

Go to: Run/Debug Configurations -> + -> Python

See screenshot below:

Hit a Breakpoint

Now the IDE is ready to debug the source code. Click the debug button for main (setup in the previous section).

Try firing a http request to Fides from Postman or Curl and hit a breakpoint.

There is a postman collection in this repo: docs/fides/docs/development/postman/Fides.postman_collection.json

Screenshot of hit breakpoint below:

Links

The information in this guide is largely based on the pycharm (opens in a new tab) and interpreters (opens in a new tab).

[Release Checklist](/content/docs/community/development/release_checklist "Release Checklist"/index.html) [Updating the Database Diagram](/content/docs/community/development/update_erd_diagram "Updating the Database Diagram"/index.html)