Files
gsfdc/demo-dify/dify/.vscode
wuzilongandCursor 6519682885 chore: 纳入本地 Dify 1.19.0 源码及品牌与免登改动
演示目录只保留可重建的源码。运行密钥、数据卷、依赖和带口令的本地配置不进入仓库。

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-11-18 13:59:25 +08:00
..

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.