# Testing and debugging

> Run and test a Python function locally, then push it to Studio Web to debug it in Automation Suite.

Test a function locally before publishing, and push it to Studio Web when you need to debug it in Automation Suite.

## Run locally

Invoke an entry point with a JSON input payload:

```bash
uipath run main '{"message": "hello"}'
```

The local run resolves assets, buckets, and connections through the entries in `bindings.json`. No tenant mapping applies locally, so each call falls back to its design-time identifier and the log records one `No resource overwrite matched` line per binding. Iterate here until the function returns the output you expect.

For what those lines mean and how the same identifiers are remapped in a target tenant, see [Resource bindings](resource-bindings.md).

## Debug in Studio Web

Push the project to Studio Web to debug it in Automation Suite:

```bash
uipath push
```

Studio Web runs the function in Automation Suite, which is useful for reproducing issues that depend on platform context not available locally.

## Tips

- Test each entry point individually with representative input.
- Exercise the error paths — confirm that errors behave as expected (see [Building Python functions](building-python-functions.md)).
- Use [tracing](tracing-and-observability.md) to pinpoint which step fails.

## Next steps

- [Package and publish](packaging-and-publishing.md)
