Have others join by sharing the following url:

The Debug feature is currently in beta. You may encounter unexpected behavior or limitations.

By continuing, you acknowledge that this feature is experimental.

{#snippet actions()} {/snippet}
{#if args} { if (wsProvider?.shouldConnect) { disableCollaboration() } else { setCollaborationMode() } }} on:showDiffMode={showDiffMode} on:hideDiffMode={hideDiffMode} customUi={customUi?.editorBar} collabLive={wsProvider?.shouldConnect} {collabMode} {validCode} iconOnly={width < EDITOR_BAR_WIDTH_THRESHOLD} on:collabPopup={() => (showCollabPopup = true)} {editor} {lang} on:createScriptFromInlineScript {websocketAlive} collabUsers={peers} kind={asKind(kind)} {template} {args} {noHistory} {saveToWorkspace} lastDeployedCode={lastDeployedCode && lastDeployedCode !== code ? lastDeployedCode : undefined} {diffMode} bind:showHistoryDrawer > {#snippet right()} {@render editor_bar_right?.()} {/snippet} {/if} {#if !noSyncFromGithub && customUi?.editorBar?.useVsCode != false}
{/if}
{#if lang === 'ansible' && ansibleAlternativeExecutionMode != null} {@render editorContent()}

File Browser

{:else} {@render editorContent()} {/if}
{#if showTabs}
{#if hasPreprocessor}
{/if}
{/if} {#if debugMode && isDebuggableScript}
{/if}
{#if !(debugMode && isDebuggableScript)}
{#if testIsLoading} {:else} {@const disableTriggerButton = customUi?.previewPanel?.disableTriggerButton === true} {#if !disableTriggerButton} {/if} {/if}
{/if}
{#if jsonView}
{ if (e.detail) { args = e.detail } }} updateOnBlur={false} placeholder={`Write args as JSON.

Example:

{
  "foo": "12"
}`} />
{:else}
{#key argsRender} {/key}
{/if}
{#if scriptProgress && !debugMode} {/if} {#snippet capturesTab()}
{/snippet} {#snippet customResultPanel()} {/snippet}
{#snippet editorContent()}
{#if assets?.length} {/if} {#if isDebuggableScript && customUi?.editorBar?.debug != false} {/if} {#if showDebugPanel && !showDebugConsole} {/if} {#if lang === 'ansible' && hasDelegateToGitRepo} {/if} {#if testPanelSize === 0}
{#if debugConsoleVisible} {@render editorPane()} (showDebugConsole = false)} workspace={$workspaceStore} jobId={debugSessionJobId ?? undefined} /> {:else}
{@render editorPane()}
{/if}
{/snippet} {#snippet editorPane()} {#key lang} { inferSchema(e.detail) // Refresh breakpoint positions when code changes (decorations track their lines) if (debugMode && breakpointDecorations.length > 0) { refreshBreakpointPositions() } }} on:saveDraft on:toggleTestPanel={toggleTestPanel} cmdEnterAction={async () => { await inferSchema(code) runTest() }} formatAction={async () => { await inferSchema(code) try { localStorage.setItem(path ?? 'last_save', code) } catch (e) { console.error('Could not save last_save to local storage', e) } dispatch('format') }} class="flex flex-1 h-full !overflow-visible" scriptLang={lang} automaticLayout={true} {fixedOverflowWidgets} {args} {enablePreprocessorSnippet} preparedAssetsSqlQueries={preparedSqlQueries.current} customTag={tag} /> { showHistoryDrawer = true } }, { text: 'Quit diff mode', onClick: () => { hideDiffMode() }, color: 'red' } ] : []} /> {/key} {/snippet}