---
schema_version: "1"
id: a88a123df24aee2bf52b9aba893096db7afaaeafb842f2098537adf8bd8fd040
title: Testing and Debugging Custom Policies
collection: mulesoft
version: current
locale: en-us
portal_url: https://docs.salesforce.com/mulesoft/current/en-us/pdk/latest/policies-pdk-test-debug-overview.md
canonical_url: https://docs.mulesoft.com/pdk/latest/policies-pdk-test-debug-overview
source_site: docs.mulesoft.com
content_type: documentation
content_hash: d0bdcc86bae731dfeed1a333226e53e10f4dfc76c583393dcec4315aa4814019
description: MuleSoft Documentation Site
release: "1.10"
latest: true
---
---
product: Omni Gateway Policy Development Kit (PDK)
version: 1.10
is-latest-version: true
---

# Testing and Debugging Custom Policies

> For the full documentation index, see: https://docs.mulesoft.com/llms.txt

Use the Policy Development Kit (PDK) testing options to validate behavior, catch regressions, and
debug before you [publish your policy to Exchange](https://docs.mulesoft.com/pdk/latest/policies-pdk-publish-policies-overview):

- [Debugging Custom Policies with the PDK Debugging Playground](https://docs.mulesoft.com/pdk/latest/policies-pdk-debug-local) — Use the
  preconfigured API instance in your project’s `playground` directory to exercise and debug the
  policy interactively.

- [Writing Unit Tests](https://docs.mulesoft.com/pdk/latest/policies-pdk-unit): Run fast, deterministic Rust unit tests that exercise the
  full request and response lifecycle without configuring Envoy, WebAssembly, or external services.

- [Writing Integration Tests](https://docs.mulesoft.com/pdk/latest/policies-pdk-integration-tests): Run automated tests on a local mode
  Omni Gateway to verify your policy with real gateway behavior and surrounding configuration.
