Skip to content

Commit 39cc197

Browse files
committed
Final edits for doc
1 parent cc263b7 commit 39cc197

1 file changed

Lines changed: 18 additions & 18 deletions

File tree

support/power-platform/power-apps/create-and-use-apps/monitor-debugging-canvas-apps.md

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,18 @@
11
---
2-
title: Debug canvas apps with Live monitor and Trace
3-
description: Learn how to troubleshoot canvas app issues across users and environments by using Live monitor and the Trace function to capture real-time events and diagnostic data.
2+
title: Diagnose Canvas App Issues with Trace and Live Monitor
3+
description: Discover how to troubleshoot canvas app issues with Live monitor and Trace. Monitor real-time data operations, errors, and performance for better app diagnostics.
44
ms.date: 01/15/2026
55
ms.reviewer: carlosff, v-shaywood
66
ms.custom: sap:Running Canvas App
77
search.audienceType:
88
- maker
99
---
1010

11-
12-
# Debug canvas apps with Live monitor and Trace
11+
# Debug canvas apps by using Live monitor and Trace
1312

1413
## Summary
1514

16-
This article explains how to use [Live monitor](/power-apps/maker/monitor-overview) with the [Trace function](/power-platform/power-fx/reference/function-trace) to diagnose issues in Power Apps canvas apps. This approach helps you troubleshoot problems that occur only for certain users or in specific environments. Live monitor displays real-time events such as network calls, data operations, errors, and performance details. The Trace function lets you add custom diagnostic records to capture values from [behavior formulas](/power-apps/maker/canvas-apps/working-with-formulas#manage-app-behavior) at key moments.
15+
This article explains how to use [Live monitor](/power-apps/maker/monitor-overview) with the [Trace function](/power-platform/power-fx/reference/function-trace) to diagnose problems in Power Apps canvas apps. This approach helps you troubleshoot problems that occur only for certain users or in specific environments. Live monitor displays real-time events such as network calls, data operations, errors, and performance details. The Trace function lets you add custom diagnostic records to capture values from [behavior formulas](/power-apps/maker/canvas-apps/working-with-formulas#manage-app-behavior) at key moments.
1716

1817
> [!NOTE]
1918
> If you can't use Live monitor (for example, in SharePoint forms or custom portal embeddings), see [Debug canvas apps without Live monitor](monitor-debugging-canvas-apps-without-live-monitor.md) for alternative approaches.
@@ -24,7 +23,7 @@ This article builds on [Debugging canvas apps with Live monitor](/power-apps/mak
2423

2524
## Combine Live monitor and Trace
2625

27-
Live monitor displays platform-level activity: data operations (`getRows`, `createRow`, `patch`), control evaluations, errors (HTTP status codes such as `404` or `429`), timing, and delegation indicators.
26+
Live monitor displays platform-level activity: data operations (`getRows`, `createRow`, `patch`), control evaluations, errors (HTTP status codes such as `404` or `429`), timing, and [delegation](/power-apps/maker/canvas-apps/delegation-overview) indicators.
2827

2928
When you add Trace calls in your behavior formulas (`OnSelect`, `OnVisible`, `OnStart`), you capture context such as:
3029

@@ -43,15 +42,15 @@ Together, Live monitor and Trace answer both "what happened" and "why."
4342
Live monitor displays each data operation event with:
4443

4544
- Operation type (`getRows`, `createRow`, `patch`, `removeRow`)
46-
- Data source (Dataverse table or connector name)
45+
- Data source ([Dataverse](/power-apps/maker/data-platform/data-platform-intro) table or connector name)
4746
- Timing (start, finish, duration)
4847
- Result (success or error status code)
49-
- Delegation hints (non-delegable operations trigger client-side processing)
48+
- Delegation hints ([non-delegable operations](/power-apps/maker/canvas-apps/delegation-overview#non-delegable-limits) trigger client-side processing)
5049

5150
Select an event to view details. Correlate events with nearby Trace records to understand *why* the operation occurred. For example, a surge in `getRows` calls after a Trace with `phase: "ApplyFilters"` might indicate an inefficient filter expression.
5251

5352
> [!TIP]
54-
> If you see HTTP 429 (throttling), check preceding events to determine whether a loop or repeated evaluation triggered excessive operations. Optimize formulas or use collections to cache data and reduce network calls.
53+
> If you see HTTP 429 (throttling), check preceding events to determine whether a loop or repeated evaluation triggered excessive operations. Optimize formulas or use [collections](/power-apps/maker/canvas-apps/create-update-collection) to cache data and reduce network calls.
5554
5655
### Use Trace effectively
5756

@@ -60,22 +59,23 @@ The [Trace function](/power-platform/power-fx/reference/function-trace) writes a
6059
Key features:
6160

6261
- Works only in behavior properties (`OnSelect`, `OnChange`, `OnVisible`, `OnStart`).
63-
- Accepts a text message and an optional record payload for additional details.
62+
- Accepts a text message and an optional record payload for extra details.
6463
- `TraceSeverity` helps you filter events (Information, Warning, Error). Use Error sparingly.
6564
- Has minimal performance impact when used appropriately. Remove or guard verbose Trace calls before broad deployment.
6665

67-
#### Trace data property values with debug buttons
66+
#### Trace data property values by using debug buttons
6867

6968
Because you can't place Trace in data properties (such as a label's `Text`), use temporary debug buttons to capture those values.
7069

7170
To create a debug button:
7271

7372
1. Add a button named `btnDebugSnapshot` with **Visible** set to `Param("debug") = "true"`.
73+
1. For more information about passing parameters, see [Param function](/power-platform/power-fx/reference/function-param).
7474
1. In `OnSelect`, call Trace with a snapshot record.
7575
1. When testing, add `&debug=true` to the app URL to show the button.
7676

7777
> [!TIP]
78-
> Trace the input values used to calculate a data property. They often reveal why the result isn't what you expect.
78+
> Trace the input values you use to calculate a data property. They often reveal why the result isn't what you expect.
7979
8080
##### Example debug snapshot button
8181

@@ -97,13 +97,13 @@ Trace(
9797
```
9898

9999
> [!NOTE]
100-
> Guard debug controls with query string parameters or role checks so that end users don't see them. Remove these controls before you finalize the app.
100+
> Guard debug controls by using query string parameters or role checks so that end users don't see them. Remove these controls before you finalize the app.
101101
102102
### Debugging checklist
103103

104-
Use this checklist when troubleshooting canvas app issues:
104+
Use this checklist when troubleshooting canvas app problems:
105105

106-
1. Reproduce the issue with Live monitor open (in Studio or a published session).
106+
1. Reproduce the problem with Live monitor open (in Studio or a published session).
107107
1. Add Trace calls at key phases (start, decision points, end, error handlers).
108108
1. Use query string parameters (`Param`) to tag the environment or enable debug controls.
109109
1. Compare traces across users or environments. Look for different flags or counts.
@@ -122,7 +122,7 @@ Capture what the app sees about each user (email, roles, customer selection, dis
122122

123123
#### Steps
124124

125-
1. Open the app in Power Apps Studio.
125+
1. Open the app in [Power Apps Studio](/power-apps/maker/canvas-apps/power-apps-studio).
126126
1. Add Trace calls in the `OnSelect` property of the submit button.
127127
1. Save and publish the app.
128128
1. Open Live monitor for the published app.
@@ -172,7 +172,7 @@ Trace(
172172

173173
In Live monitor, filter by Trace events, button name, or search for "Debug:" in the info column. Compare User A vs. User B:
174174

175-
- Do they have different `isVIP` values? This could change discount calculations.
175+
- Do they have different `isVIP` values? This difference could change discount calculations.
176176
- Are cart counts identical? If not, upstream logic differs.
177177
- Are error traces present only for User B? Expand the event to inspect error details.
178178

@@ -215,7 +215,7 @@ In the event list:
215215
216216
If you find a difference, add more Trace calls where the variable is set to see how it's populated.
217217
218-
If you see network errors (`4xx` responses), verify that tables, flows, and connectors are configured correctly in both environments.
218+
If you see network errors (`4xx` responses), verify that tables, [flows](/power-automate/overview-cloud), and [connectors](/connectors/connectors) are configured correctly in both environments.
219219
220220
## Related content
221221

0 commit comments

Comments
 (0)