Midio docs
  • Getting Started
    • Welcome
    • Quick Start Guide
  • Your First Midio App
  • Guides
    • HTTP
      • Making HTTP Requests
      • Responding to HTTP Requests
      • How to reach your own endpoints
      • CORS
      • Server-Sent Events (SSE)
    • Branching
    • Loops
    • Map, filter, reduce
    • Working with Data
    • Expressions
    • Building Agents
      • Streaming Agent API (experimental)
    • Debugging
    • Secrets and Environment variables
    • Convert JSON to data nodes
    • Writing tests
    • Cleaning up your flows
  • Package Manager
  • Integrating with third party services
  • Troubleshooting
  • Tutorials
    • Connecting LLMs to MCP-servers using the MCP-client package
    • Making Your Own MCP Server in Midio
    • A Fast Path to Functional RAG Agents
    • How to build a streaming agent using Server-Sent Events (SSE)
  • Reference
    • The Midio Editor
      • The Node Editor
      • User Traces
      • Traces (execution)
      • Processes
      • Log
      • Services
      • Problems
      • Function Signature
      • Data
      • Settings
    • The Midio Language
      • Nodes and execution
      • Functions and Events
        • Anonymous functions
      • Modules
      • Contexts
      • Data type
      • Local variables
      • Portals
      • Waypoint node
      • Partial function application
  • The Midio Engine
  • Built in Nodes
    • Core (std)
    • HTTP
    • LLM
Powered by GitBook
On this page

Was this helpful?

Edit on GitHub
  1. Guides

Debugging

PreviousStreaming Agent API (experimental)NextSecrets and Environment variables

Last updated 2 months ago

Was this helpful?

Step debugging

Step debugging is a helpful way to examine your code as it runs. By pausing the code at certain points and going through it step by step, you can see how things change and identify problems.

You have the ability to set breakpoints by selecting a node, which opens the node toolbar, and clicking the breakpoint icon (or use the hotkey cmd/ctrl-b).

When the execution reaches that node, it will pause (indicated by a striped blue outline).

With the buttons in the node toolbar or the , you can step to the next node or continue the execution. If multiple processes are paused simultaneously, you can easily switch between them by clicking on their respective entries in the panel.

In the video below you can see what step debugging looks like. It also illustrates the (perhaps surprising) order in which the nodes are called in, where execution jumps directly from the top-left node to the node, before going to the second node.

Processes panel
Adding breakpoints
Node outline when stopped at a breakpoint
Log
Add
Log