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

# 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/1.9/policies-pdk-publish-policies-overview):

- [Debugging Custom Policies with the PDK Debugging Playground](https://docs.mulesoft.com/pdk/1.9/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/1.9/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/1.9/policies-pdk-integration-tests): Run automated tests on a local mode
  Omni Gateway to verify your policy with real gateway behavior and surrounding configuration.
