Troubleshooting, health checks, and debugging
Start with Run Project Health Check, then inspect Problems entries whose source is AVStudio. The check covers project structure, JSON, file locations, references, actions, bindings, variants, icons, and environment-token consistency, with local list-datasource shape checks added in 27.0.35. It does not prove device connectivity or runtime behavior.
Diagnose in order
- Save the intended change. Finish an open action form with Save action & close, then save its owning document.
- Check the project. Run Run Project Health Check from the Command Palette and open VS Code's Problems panel. Focus on entries with source AVStudio.
- Fix the first relevant cause. Open the reported file and inspect its JSON, location, or reference. Recheck after the correction rather than repeatedly generating files.
- Check the editor result. Open the intended page and select the affected element. Confirm the correct sidebar and mode are being edited.
- Test the runtime. Open Live Preview, reproduce one interaction, and inspect the browser Console and, where relevant, Network panel.
- Check the target. For an external system, verify the outgoing request and incoming feedback independently.
A clean Problems panel verifies only the checks the extension performs. It is not proof that credentials, a processor program, a broker topic, or a media stream works on the deployed device.
Where to find evidence
| Location | Use it for |
|---|---|
| Problems → AVStudio entries | Project structure, invalid JSON, missing references, and file-location issues. |
| Output → AVStudio Health | Health-check runs, project-root discovery, file generation, and check failures. |
| Element / Container / Page Properties | The actual configuration of the selected entity and mode. |
| Output → AVStudio Datasource | Failed editor Test request details, including certificate, DNS, and connection causes. |
| Output → AVStudio Live Preview | Preview startup and its current Local and Network URLs. |
| Running preview's browser Console | Runtime errors and action/connector logging. |
| Browser Network panel | Request destination, response status, payload, and failed resource loads. |
Build completion notification and build/ | The output path and whether a new archive was generated. |
avstudio-meta.md inside an archive | The version and build details associated with that exported artifact. |
Use the addresses from your own current session. The screenshot's port is an example, not a fixed NG port. The VS Code Debug Console is not automatically the same console as the running browser page.
Run Project Health Check
Use this check after adding controls, moving files, changing references, or before building a project. The checks were reviewed against installed 27.0.29 source, with the new list-shape rule checked against the published 27.0.41 package. Earlier screenshots retain their original capture versions. The extended checks catch configuration that can otherwise fail silently at runtime.
Run the check and read the results
- Open the workspace containing your AVstudio project. Save the affected files; finish an open action form with Save action & close first.
- Open the Command Palette with Cmd+Shift+P on macOS or Ctrl+Shift+P on Windows/Linux.
- Search for Run Project Health Check and run the AVstudio command.
- Open View → Problems. Inspect entries whose source is AVStudio; other extensions can report unrelated problems in the same panel.
- Select a diagnostic to inspect its file or missing-entry document. Read the full message, correct the cause, save, and run the check again.
The extension also schedules checks in response to document and filesystem changes. A manual run is useful when you want to recheck the current project explicitly. Resolved diagnostics are removed on a subsequent check.
What the check covers
| Check | What it reports | What to do |
|---|---|---|
| Required structure | Missing avstudio.config, global.variables, global.slots, or required folders: pages, connectors, datasources, functions, assets, theme. Also reports a file where a folder is expected, or the reverse. | Restore the required item or use the missing-item generation workflow below. |
| Parsed project data | Empty or invalid JSON in inspected page, variable, datasource, connector, or project configuration data. | Correct the reported document's syntax and content. Generating missing files does not repair an existing invalid document. |
| References | Missing targets in inspected project references, including pages, connectors, datasources, and assets; some legacy or relative page paths produce warnings. | Select an existing target and follow project-root path conventions. For example, use pages/start.page for the start-page reference. |
| Entity location | Recognized entity file types in an unexpected folder, such as a .page file in connectors/. | Move the file to the appropriate folder and update references to it. |
| Button Join Map | Multiple Join Map actions or mappings incompatible with the element's button/channel targets. | Keep one mapping on a supported control: Dpad buttonJoins or Color Picker RGB-variant channelJoins; validate target IDs. |
| Actions and variants | Invalid/incomplete actions, unsupported element variants, unknown Join Map IDs. | Complete the event/target/value and choose a variant supported by the control. |
| Datasource configuration | Broken or incomplete definitions, local-data references, or consuming bindings. | Check the source form, fixture, formatter, and attachment. |
| List datasource shape (27.0.35+) | A statically resolved local Subpage List result is not an array, has no local source, or has empty/invalid JSON. | Fix the fixture or filter/pick chain; the rule skips remote sources, formatters, and dynamic keys/steps. See datasource verification. |
| Dynamic values and icon packs | Unknown/unresolvable tokens or icons whose packs are inactive. | Correct scope and spelling; activate the required pack. |
| Environment values | Unknown @env:KEY@, inconsistent keys across env files, including connector configuration tokens. | Select/populate the correct environment; align key sets. env/ is optional when unused. |
| List context | Reserved parameter overrides/external setters, non-item-relative list keys, item-relative selected keys. | Let the list supply context; use item-relative listKey and list-wide activeSelectedListKey. |
| Crestron feedback tokens | Unsupported system namespace, invalid Crestron type/name, or tokens without a Crestron connector. | Correct the token and active connector; test live values in Preview. |
Reference checks depend on the extension's project data being ready. If results appear incomplete just after opening a workspace, let the project load and rerun the check. Dynamic targets still need runtime testing.
Restore missing standard files and folders
For a missing required item, open the diagnostic and use its Quick Fix: Generate missing file: … or Create missing folder: …. To restore all missing standard entries, run Generate missing project files from the Command Palette. The incomplete-structure notification also offers Generate.
Generation preserves existing entries. It creates standard structure rather than recovering your deleted custom pages, actions, or assets. Restore custom content from source control or a backup. Rerun the health check after generation and inspect any remaining errors.
Inspect health-check logs
Open View → Output and select AVStudio Health in the channel picker. A manual run logs Manual run requested, followed by Run complete and Manual run finished. The output includes the project root; verify it matches the project you intended to check.
If Problems stays empty but you suspect the check failed, look for Check "…" failed or Manual run failed in this channel. Keep the failure text when reporting the issue. A run-completion log alone does not establish that every check succeeded.
The health check does not execute controls, connect to hardware, validate credentials, or prove that an exported application works. Continue with Live Preview and the intended target runtime.
Debug a control in Live Preview
Enable useful runtime logs
Run Set Live Preview log level and choose info or debug when investigating actions or connectors. Check browser Console filters if expected messages remain hidden.
This development setting is stored in workspace state. Changing avstudio.config → Production log level changes exported builds instead. See Settings reference.
Trace one interaction
- Resolve relevant health-check diagnostics, then start Live Preview.
- Open developer tools in the preview browser and select Console. Clear old messages and check that errors and the desired log levels are visible.
- Trigger one control in the running preview. The design canvas selects controls for editing; it does not substitute for this runtime test.
- Inspect the first relevant error. Check the selected element, event, action target, and value. If an action is absent, verify it was saved in the owning document and intended mode.
- For browser requests, open Network and repeat the interaction. Inspect the destination, status, request payload, response, and failed asset loads. Use connector/runtime logs for transports that are not exposed as ordinary browser requests.
- Verify incoming feedback independently: check the bound variable or page parameter, then the displayed value or mode selector. An outgoing command and an updated display are separate observations.
- Correct the cause, save, and repeat the same interaction. Test the exported build on its intended runtime when the issue depends on hardware or native features.
For example, if a volume slider moves but the device volume does not change, inspect its outgoing action and value first. If the device changes but the displayed volume stays stale, inspect incoming feedback and its binding. See Actions and feedback for related symptoms.
Common problems
| Symptom | Check and resolution |
|---|---|
| No contextual properties | Open a recognized project with avstudio.config, then select a page/container/element |
| Page opens as text | Use Reopen Editor With... → AVS Visual Editor |
| Missing project files | Use the diagnostic Quick Fix or Generate missing project files |
| Broken page/connector/asset reference | Match the actual file and required project-root path; rerun the check |
Literal $name$ or %name% appears | Verify spelling and whether the value is global or page-local |
| Literal datasource token appears | Match its key to the element's attached datasource and check the filtered data path |
| Action sends a token string | Check token spelling and action host scope; 27.0.3+ resolves variable/parameter tokens and element datasource paths |
| Subpage is empty | Select an existing target and check parameter names |
| Subpage List is empty | Attach a datasource whose filtered result is an array |
| Theme edit has no effect | Verify the active theme and remove conflicting local property overrides |
| Icon missing | Activate its pack and select an existing symbol in the picker |
| RTSP shows a requirement message | Test in App Container; ordinary browser preview lacks the native bridge |
| Preview cannot reach device | Check host, transport, credentials, network, and preview logs |
| Mobile cannot open preview | Use the reported Network URL rather than localhost |
| AMX creation unavailable | Check the installed version; creation is enabled since 27.0.0 and live connection since 27.0.3 |
| Licensed action unavailable | Open Profile and check the account status and notification |
Editor and project recovery
Page opens as JSON or properties are missing
A .page file contains JSON, but NG normally opens it in its visual editor. Use Reopen Editor With… → AVS Visual Editor when needed. Then select the intended control on the canvas and open its Element Properties view. Selecting a container or page requires the corresponding properties view.
If NG does not recognize the project, locate the exact avstudio.config file and verify that the correct workspace is open. Do not add .json to standard filenames such as avstudio.config, global.variables, or global.slots.
Missing files or invalid references
Use the health-check diagnostic to identify the specific missing item. Generate missing project files restores standard structure without overwriting existing files; it cannot recreate deleted custom pages or assets.
For a broken reference, compare the saved path with the actual target. Connector references include connectors/, and stored page references commonly include pages/. A datasource definition and its local JSON data file are different targets. See Project files and path conventions.
Restore lost custom content from source control or backup. After moving or renaming a file, inspect its consumers as well as the file itself.
Actions and feedback
| Observation | Next diagnostic step |
|---|---|
| Clicking only selects the element | Move from the design canvas to Live Preview to execute the interaction. |
| Action is missing after closing its form | Confirm Save action & close, then inspect the owning element/page/variable. |
| Action fires at an unexpected time | Review Behaviour, Execution Delay, and duplicate actions on other events or modes. |
| Slider always sends the same payload | Check fixed/custom Value versus the event's changed value. |
| Command reaches the device but appearance does not update | Inspect the separate feedback binding and the variable attached to the display or mode selector. |
| Feedback causes repeated outgoing commands | Inspect Side effect actions on the bound variable for a loop. |
| Only one mode works | Review that mode's overridden properties and actions as well as Default. |
For example, diagnose a light button by first confirming that its press sends the intended command, then confirming that the processor's state reaches the bound variable, and finally checking that the mode selector uses that variable. Do not infer device state from a locally changed label alone.
Datasources, Subpages, and dynamic content
- Inspect the datasource definition and verify its selected local or remote source.
- Inspect the actual returned data before applying element filters.
- Review the filter/pick steps and the resulting shape.
- Confirm the element is attached to the intended
.datasourcekey. - Check the field path or input parameter mapping used by the element.
A Subpage List needs an array after filtering. Picking one object can make the list empty even though the source contained records. For repeated instances, use the supported item-relative mappings rather than binding every instance to the same fixed array index.
For an ordinary Subpage, verify the attached page and matching parameter names. Right-click Edit attached subpage to inspect the reusable page itself. Host-page parameters and the attached page's parameters have different scopes. See Subpages and Datasources.
Release-specific checks
Changes in 27.0.30–27.0.41
| Symptom | Check |
|---|---|
| Canvas edits do nothing while signed out | From 27.0.40, drag/resize/align shows You need to sign in to edit; check Profile and edit rights. |
| Open pages still show the previous extension UI | From 27.0.40, updating triggers one automatic window reload. Confirm Installation → Version; save and run Developer: Reload Window if needed. |
| Fixed-layout overlaps changed after updating | 27.0.30 corrects stacking to match the structure sidebar. Use Z order. |
| Element size stops growing or causes overflow | Review Width/Height min/max limits; 27.0.35 honors them across all types. |
| Page switch flashes or None still fades | Use the corrected 27.0.35+ transitions and review active-theme companion CSS overrides. |
| Custom prop stays marked filled after clearing | 27.0.41 removes cleared prop overrides and orphaned subpage input values; confirm the new version is active. |
| A partially typed external setter address starts receiving updates | In 27.0.41, address edits commit on blur or Enter; complete the field before checking the subscription. |
| Icon-only Button or Text looks off-center | 27.0.35 fixes empty text-slot offset; also review local padding and alignment. |
Editor forms automatically save after a short debounce from 27.0.35. Finish action dialogs and save direct source edits before collecting a reproduction. Connector changes now restart affected drivers, and Crestron retries failed initial token fetches; inspect current runtime status and credentials if reconnection still fails.
The incomplete Overlay, HTTP, and WebSocket forms and disabled AMX creation documented for 0.1.54 are superseded by the 27.0.x workflows.
| Symptom | Check in 27.0.29 |
|---|---|
| Old name-based Overlay no longer opens | Re-select the target in Attach Page; overlayAttachedSubpageName was removed. |
| HTTP request uses the wrong URL | Select the required .web connector; requestUrl is a postfix, not a full URL. |
| HTTP response action never fires | Response-chain execution is not implemented in 27.0.29; inspect request status logs. |
| WebSocket variable does not update | Incoming JSON path must exist and select a scalar; check type and connector status. |
| WebSocket send disappears | Disconnected sends are skipped, not queued. |
| AMX connects but cannot read/write variables | AMX get/set is not wired up yet. |
| Join Map is flagged | Use one mapping appropriate to the target: Dpad digital buttonJoins or Color Picker RGB-variant analog channelJoins; verify event timing and joins. |
| Crestron feedback text remains literal | Test in the running preview with the active connector; check type/name and dynamic join scope. |
| Page opens as text or the Git diff uses JSON | Run Use visual editor as default for .page files to repair associations. |
In the design canvas, subpage input feedback tokens use the declared default. DateTime, Dpad, and State Control text-token/HTML rendering was fixed in 27.0.5. Include the installed extension version when reporting different behavior.
Control and styling checks in 27.0.29
| Symptom | What to inspect |
|---|---|
| RGB selection ignores an old hex value | Check the Color Picker variant: RGB uses value_r/g/b, while Hex uses value_hex and serial output. |
| A value returns after editing | Controls re-sync to their stable bound value; wire the outgoing update and incoming acknowledgement. |
| A button appears inactive or its actions do not run | Inspect Disabled state separately from modes and Pressed state. |
| A JSON message contains raw context markers | Use JSON mode, a supported owning element/key, and correct value/string placement; context tokens do not resolve in serial fields or URLs. |
| Scroll snap has no effect | Check overflow, scroll mode, responsive container layout or grid list variant, and the correct inner/outer scroller. |
| Theme CSS/images do not apply | Check the active theme path, sibling dependency location, and saved image-picker value. |
Preview, build, and target differences
If the preview browser does not open, check the Output channel for a reported Local URL. If another device cannot load the preview, use the current Network URL and confirm the development server remains running. localhost on a phone refers to that phone, not your workstation.
When preview works but an exported application does not, confirm that you saved the source, built again, and deployed the new archive. Review the target's network access, credentials, transport, and media support. A valid ZIP or CH5Z is not proof of a working integration.
RTSP requires the supported App Container runtime and cannot be validated in an ordinary browser preview. Test runtime-specific behaviour on the intended device. See Live Preview, Build and deployment, and the Video guide.
Reference diagnostics and dynamic values
For a dynamic page, connector, or asset reference, check the token syntax, the field's supported binding scope, and the value resolved at runtime. A clean health check does not guarantee that a runtime token resolves to a valid target.
Gather a useful report
Record the extension and VS Code versions, operating system, target runtime, exact steps, expected result, and actual result. Include relevant AVStudio diagnostics, a screenshot, and preview logs at an appropriate level. Use a small reproducible project when possible.
Reduce the reproduction
Make a copy of the project and reduce it to the affected page, required theme/assets, and relevant binding or action. Keep the original source intact. Confirm that the reduced example still exhibits the problem before sharing it. State whether it requires external hardware or whether local data can reproduce it.
Capture the VS Code development environment with the selected element and the relevant sidebar section visible. Include the exact error text and the first relevant log entries, not only a screenshot of the final blank screen.
Use this report template:
NG extension version:
VS Code version and operating system:
Target runtime/device:
Affected file and control:
Steps to reproduce:
Expected result:
Actual result:
AVStudio Problems entries:
Relevant runtime error/log:
Reproduces in Live Preview, exported build, or both:
External device/service required:
Recent change before the issue:
Remove credentials, tokens, private hostnames, and unrelated project data before posting. Contact the AVstudio community or support.

