Skip to content

armgit / dify

Public Imported from GitHub
0

Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.

1.6 KB
Raw Blame

Debugging with VS Code

launch.json.template provides API and Celery worker debug configurations for VS Code / Cursor. Both use api/.venv/bin/python; complete the backend setup first.

How to Use

  1. Copy .vscode/launch.json.template to .vscode/launch.json, or merge the configurations into an existing file.
  2. Select Debug Configuration: Go to the Run and Debug view in VS Code / Cursor (Ctrl+Shift+D or Cmd+Shift+D).
  3. Start Debugging: Select the desired configuration from the dropdown menu and click the green play button.

Start the frontend separately using the frontend guide.

Frontend OpenAPI types

After installing workspace dependencies, install the TypeScript 7 extension (TypeScriptTeam.native-preview). Copy settings.example.json to settings.json, or merge its three js/ts.* settings into your existing configuration. Open the repository root in a trusted workspace, then open a consuming TypeScript file so the language server loads the project's Content Mapper configuration.

If lifecycle scripts were disabled during installation, first run pnpm --filter @dify/openapi-content-mapper build. For the repository Console example, run uv sync --project api --frozen to prepare its local schema exporter, then open packages/openapi-content-mapper/examples/repository/client.ts. The exported OpenAPI content stays in memory; no preparation of a specification file is needed. Accept the editor prompt to use the workspace TypeScript 7.1 compiler. Local settings.json remains ignored; the shared template is exercised by the Console language-server test.