mirror of
https://github.com/langgenius/dify-docs.git
synced 2026-03-26 13:18:34 +07:00
Docs: modify files
This commit is contained in:
@@ -127,7 +127,6 @@
|
||||
{
|
||||
"group": "Debug and Preview",
|
||||
"pages": [
|
||||
"en/guides/workflow/debug-and-preview/debug-node",
|
||||
"en/guides/workflow/debug-and-preview/preview-and-run",
|
||||
"en/guides/workflow/debug-and-preview/step-run",
|
||||
"en/guides/workflow/debug-and-preview/history-and-logs",
|
||||
@@ -755,7 +754,6 @@
|
||||
{
|
||||
"group": "预览与调试",
|
||||
"pages": [
|
||||
"zh-hans/guides/workflow/debug-and-preview/debug-node",
|
||||
"zh-hans/guides/workflow/debug-and-preview/preview-and-run",
|
||||
"zh-hans/guides/workflow/debug-and-preview/step-run",
|
||||
"zh-hans/guides/workflow/debug-and-preview/history-and-logs",
|
||||
@@ -1415,7 +1413,6 @@
|
||||
{
|
||||
"group": "プレビューとデバッグ",
|
||||
"pages": [
|
||||
"ja-jp/guides/workflow/debug-and-preview/debug-node",
|
||||
"ja-jp/guides/workflow/debug-and-preview/preview-and-run",
|
||||
"ja-jp/guides/workflow/debug-and-preview/step-run",
|
||||
"ja-jp/guides/workflow/debug-and-preview/history-and-logs",
|
||||
|
||||
@@ -1,69 +0,0 @@
|
||||
---
|
||||
title: Debug Nodes
|
||||
---
|
||||
|
||||
Workflow and Chatflow applications typically consist of multiple interconnected nodes. To ensure your entire application runs smoothly, you need to verify each node's inputs and outputs meet expectations. The debugging feature helps developers confirm the application functions as designed, identify potential issues early, and prevent errors in production environments.
|
||||
|
||||
You can debug nodes using two methods:
|
||||
|
||||
## Step Debugging
|
||||
|
||||
Step debugging lets you test specific nodes independently without executing the entire workflow. This is useful when adding new nodes, troubleshooting specific errors, or testing how nodes handle different inputs.
|
||||
|
||||
### How to Step Debug
|
||||
|
||||
1. Select the node you want to debug in the workflow editor
|
||||
2. Click the **Run Step** button in the top right corner of the node
|
||||
3. Enter the required input variables in the debug panel
|
||||
4. Click Execute to run the node
|
||||
5. Review the output results and execution status
|
||||
|
||||
For example, if you've added an HTTP node and want to verify it correctly retrieves API responses, you can use step debugging to test the node's behavior without affecting downstream nodes.
|
||||
|
||||

|
||||
|
||||
After debugging, you'll see the node's execution status, input/output data, and metadata. If errors occur, you can quickly troubleshoot using the error messages, preventing individual node failures from causing application-wide issues.
|
||||
|
||||
<Warning>
|
||||
Answer and End nodes don't support step debugging.
|
||||
</Warning>
|
||||
|
||||
## Sequential Execution
|
||||
|
||||
Sequential execution works best for testing interdependent nodes, especially when a node requires output from upstream nodes. Unlike step debugging, this method starts from the initial node and follows the workflow path sequentially until reaching your specified target node.
|
||||
|
||||
### How to Run Sequentially
|
||||
|
||||
1. Select your target endpoint node in the workflow editor
|
||||
2. Click the **Run To** button in the top right corner of the node
|
||||
3. The system will execute all nodes in sequence from the start until reaching your target node
|
||||
4. After execution, you can examine each node's status and output results
|
||||
|
||||
For example, if your workflow contains data retrieval (Node A) → data processing (Node B) → result display (Node C), and Node B depends on Node A's output, you can select Node B and click "Run To". The system will execute Node A first, then Node B, allowing you to verify data flows correctly between them.
|
||||
|
||||
During sequential execution, you can observe the partial workflow in action and make adjustments to configurations, data flow, and processing logic based on the results.
|
||||
|
||||

|
||||
|
||||
<Warning>
|
||||
Sequential execution isn't supported for nodes with multiple branches, such as question classification nodes and condition nodes.
|
||||
</Warning>
|
||||
|
||||
## View Node Execution Records
|
||||
|
||||
Each node generates logs after execution. You can click **Last Run** in the node details page to view the execution history.
|
||||
|
||||

|
||||
|
||||
To view the overall execution history of your application, see [Execution History](/en/guides/workflow/debug-and-preview/history-and-logs) for more details.
|
||||
|
||||
{/*
|
||||
Contributing Section
|
||||
DO NOT edit this section!
|
||||
It will be automatically generated by the script.
|
||||
*/}
|
||||
|
||||
---
|
||||
|
||||
[Edit this page](https://github.com/langgenius/dify-docs/edit/main/en/guides/workflow/debug-and-preview/debug-node.mdx) | [Report an issue](https://github.com/langgenius/dify-docs/issues/new?title=Documentation%20Issue%3A%20-n&body=%23%23%20Issue%20Description%0A%3C%21--%20Please%20briefly%20describe%20the%20issue%20you%20found%20--%3E%0A%0A%23%23%20Page%20Link%0Ahttps%3A%2F%2Fgithub.com%2Flanggenius%2Fdify-docs%2Fblob%2Fmain%2Fen/guides/workflow/debug-and-preview%2Fdebug-node.mdx%0A%0A%23%23%20Suggested%20Changes%0A%3C%21--%20If%20you%20have%20specific%20suggestions%20for%20changes%2C%20please%20describe%20them%20here%20--%3E%0A%0A%3C%21--%20Thank%20you%20for%20helping%20improve%20our%20documentation%21%20--%3E)
|
||||
|
||||
@@ -18,7 +18,7 @@ If a specific node causes the workflow to fail, you can debug that node individu
|
||||
|
||||
To test a single node, click the debug icon in its top-right corner. Try entering some simple test data and observe the output. You can gradually introduce more complex input to see how the node responds.
|
||||
|
||||
For more details, see [Debug Node](/en/guides/workflow/debug-and-preview/debug-node).
|
||||
For more details, see [Debug Node](/en/guides/workflow/debug-and-preview/step-run).
|
||||
|
||||

|
||||
|
||||
|
||||
@@ -1,71 +0,0 @@
|
||||
---
|
||||
title: ノードのデバッグ
|
||||
---
|
||||
|
||||
ワークフローやチャットフローアプリケーションは通常、複数のノードで構成されており、それぞれのノードは相互に関連しています。アプリケーション全体が正常に動作することを確認するためには、各ノードの入出力が期待通りであることをチェックする必要があります。ノードのデバッグ機能は、開発者がアプリケーションが設計通りにサービスを提供しているかを検証し、潜在的な問題を事前に発見・解決する手助けを行い、運用環境でのエラーを未然に防ぐのに役立ちます。
|
||||
|
||||
以下の二つのモードでノードをデバッグすることができます。
|
||||
|
||||
## 単一ステップデバッグ
|
||||
|
||||
単一ステップデバッグでは、ワークフロー内の特定のノードを、ワークフロー全体を実行することなく独立してテストすることが可能です。これにより、開発者はアプリケーションに新しいノードを追加する際にその機能を検証したり、特定のノードのエラーをトラブルシューティングしたり、異なる入力に対するノードの応答を確認することができます。
|
||||
|
||||
### 操作手順
|
||||
|
||||
1. ワークフロー編集画面でデバッグしたいノードを選択します。
|
||||
2. ノードの右上にある **ステップ実行(run step)** ボタンをクリックします。
|
||||
3. 表示されるデバッグパネルでそのノードの入力変数を入力します。
|
||||
4. 実行ボタンをクリックしてノードの実行をトリガーします。
|
||||
5. ノードの出力結果と実行状態を確認します。
|
||||
|
||||
例えば、ワークフローにHTTPノードを追加した場合、そのノードがAPIレスポンスを正しく取得し処理できるかを確認するために、下流ノードに影響を与えることなく、単一ステップデバッグ機能を使ってノードの実際の動作をシミュレートすることができます。
|
||||
|
||||

|
||||
|
||||
デバッグが完了すると、現在のノードの実行状態、入出力、メタデータ情報を確認できます。エラーが発生した場合は、エラーメッセージを通じて迅速に問題を特定し、ノードの異常によるアプリケーション全体の実行失敗を防ぐことができます。
|
||||
|
||||
<Warning>
|
||||
回答ノードや終了ノードは単一ステップデバッグをサポートしていません。
|
||||
</Warning>
|
||||
|
||||
## 段階的実行
|
||||
|
||||
段階的実行は、相互に依存する複数のノードの組み合わせをテストするのに適しており、特にノードの入力が上流ノードの出力に依存している場合に有効です。単一ステップデバッグとは異なり、段階的実行は開始ノードから始まり、ワークフローのパスに沿って指定されたノードまで順番に実行します。
|
||||
|
||||
### 操作手順
|
||||
|
||||
1. ワークフロー編集画面で終点としたい目標ノードを選択します。
|
||||
2. そのノードの右上にある **run to** ボタンをクリックして段階的実行機能を有効にします。
|
||||
3. システムは開始ノードから始まり、ワークフローのパスに沿って目標ノードまで順番に実行します。
|
||||
4. 実行完了後、各ノードの実行状態と出力結果を確認できます。
|
||||
|
||||
例えば、データ取得(Aノード)→データ処理(Bノード)→結果表示(Cノード)というワークフローがあり、Bノードの機能はAノードの出力に完全に依存しているとします。段階的実行機能を使用することで、Bノードを選択し「run to」をクリックすると、システムは最初にAノードを実行し、その後Bノードを実行します。このプロセスによって、二つのノード間のデータ受け渡しが正常に行われているかを確認することができます。
|
||||
|
||||
段階的実行の過程で、部分的なワークフローの動作を観察し、結果に基づいてノードの設定、データの流れ、処理ロジックをタイムリーに調整することで、ワークフローの効率性と正確性を確保することができます。
|
||||
|
||||

|
||||
|
||||
<Warning>
|
||||
質問分類ノードや条件ノードなど、複数の分岐処理がある場合は、段階的実行機能をサポートしていません。
|
||||
</Warning>
|
||||
|
||||
## ノードの実行記録の確認
|
||||
|
||||
各ノードの実行が完了すると操作ログが生成されます。ノード詳細ページの「Last run」をクリックすることで、実行履歴を確認できます。
|
||||
|
||||

|
||||
|
||||
アプリケーション全体の実行履歴を確認する場合は、[実行履歴](/ja-jp/guides/workflow/debug-and-preview/history-and-logs)を参照してください。
|
||||
|
||||
---
|
||||
|
||||
{/*
|
||||
Contributing Section
|
||||
DO NOT edit this section!
|
||||
It will be automatically generated by the script.
|
||||
*/}
|
||||
|
||||
---
|
||||
|
||||
[このページを編集する](https://github.com/langgenius/dify-docs/edit/main/ja-jp/guides/workflow/debug-and-preview/debug-node.mdx) | [問題を報告する](https://github.com/langgenius/dify-docs/issues/new?title=ドキュメントの問題%3A%20-n&body=%23%23%20問題の説明%0A%3C%21--%20発見した問題について簡単に説明してください%20--%3E%0A%0A%23%23%20ページリンク%0Ahttps%3A%2F%2Fgithub.com%2Flanggenius%2Fdify-docs%2Fblob%2Fmain%2Fja-jp/guides/workflow/debug-and-preview%2Fdebug-node.mdx%0A%0A%23%23%20提案される変更%0A%3C%21--%20特定の変更案がある場合は、ここで説明してください%20--%3E%0A%0A%3C%21--%20ドキュメントの品質向上にご協力いただきありがとうございます!%20--%3E)
|
||||
|
||||
@@ -18,7 +18,7 @@ Difyは完全なデバッグツールを提供し、問題の迅速な特定、
|
||||
|
||||
ノードの右上にあるデバッグボタンをクリックし、テストデータを入力して出力結果を確認します。デバッグの過程では、シンプルなテストデータから始めて、徐々にデータの複雑さを増やし、さまざまな入力状況でノードが正常に動作することを確認することをお勧めします。
|
||||
|
||||
単一ノードのデバッグ方法の詳細については、[ノードのデバッグ](/ja-jp/guides/workflow/debug-and-preview/debug-node.mdx)を参照してください。
|
||||
単一ノードのデバッグ方法の詳細については、[ノードのデバッグ](/ja-jp/guides/workflow/debug-and-preview/step-run.mdx)を参照してください。
|
||||
|
||||

|
||||
|
||||
|
||||
@@ -16,7 +16,7 @@ title: 功能简介
|
||||
|
||||
点击节点右上角的调试按钮,输入测试数据并查看输出结果。在调试过程中,建议从简单的测试数据开始,逐步增加数据复杂度,确保节点在各种输入情况下都能正常工作。
|
||||
|
||||
关于详细的单节点调试方法,请参考[调试节点](/zh-hans/guides/workflow/debug-and-preview/debug-node)。
|
||||
关于详细的单节点调试方法,请参考[调试节点](/zh-hans/guides/workflow/debug-and-preview/step-run)。
|
||||
|
||||

|
||||
|
||||
|
||||
Reference in New Issue
Block a user