Api And Debugging

Optionally include debug information

Summary

As you build and test your backend services in Xano, you may encounter situations where you need to troubleshoot or inspect your code more closely. Xano's debug information toggle allows you to include or exclude detailed debugging information with just a simple click, giving you greater control over your debugging process.

Why Use the Debug Information Toggle?

The debug information toggle serves two main purposes:

  1. Faster Testing: When you're running large or complex queries, including debug information can slow down the execution time. By unchecking the "Include Debug Info" option, you can run your endpoints more quickly, making it easier to test and iterate on your code.
  2. Targeted Debugging: On the other hand, when you're actively troubleshooting an issue or trying to understand the behavior of your code, having access to detailed debugging information can be invaluable. With the toggle enabled, Xano provides you with all the necessary information to diagnose and fix problems more efficiently.

How to Use the Debug Information Toggle

Using the debug information toggle in Xano is straightforward. Here's a step-by-step guide:

  1. Navigate to the Endpoint: Open the endpoint you want to run or debug in Xano's visual interface.
  2. Locate the Toggle: Look for the "Include Debug Info during run" checkbox, typically located near the "Run" or "Debug" buttons.
  3. Enable or Disable Debug Info: Check the box to include debug information during the run or debug process. Uncheck the box to exclude debug information and run the endpoint more quickly.
  4. Run or Debug: Click the "Run" or "Debug" button to execute your endpoint with the desired debug information settings.
  5. Access the Debugger: If you have debug information enabled, you can access the debugger and inspect the detailed information it provides. This can include variable values, execution traces, and other useful debugging data.

By toggling the debug information on or off as needed, you can strike the perfect balance between rapid testing and in-depth debugging, streamlining your development workflow and maximizing your productivity.

Benefits for Different Audiences

The debug information toggle offers advantages for various user groups within the Xano ecosystem:

  1. No-Code Enthusiasts: Quickly toggle between testing and debugging modes, making it easier to identify and resolve issues without coding knowledge.
  2. Citizen Developers: Gain insights into the inner workings of your applications, allowing you to troubleshoot and optimize your internal tools and workflows more effectively.
  3. Traditional Developers: Speed up your development cycle by running quick tests without debug information, and then enabling it when you need to dive deeper into the code.
  4. Startups and Small Businesses: Streamline your development process, saving time and resources by quickly switching between testing and debugging modes as needed.

With Xano's debug information toggle, you can tailor your debugging experience to your specific needs, whether you're a seasoned developer or a no-code enthusiast, ensuring a smooth and efficient development process every step of the way.

This transcript was AI generated to allow users to quickly answer technical questions about Xano.

Was this helpful?

I found it helpful

I need more support
Sign up for XanoSign up for Xano

Build without limits on a secure, scalable backend.

Unblock your team's progress and create a backend that will scale for free.

Start building for free