Skip to content

Commit 88a96cf

Browse files
committed
in the debug component, display top-level pareameters as well as row-level ones.
This also fixes a surprising behavior when starting a file without a component selection.
1 parent 9328352 commit 88a96cf

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

examples/official-site/sqlpage/migrations/06_debug.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
INSERT INTO component (name, description, icon)
33
VALUES (
44
'debug',
5-
'Display all of the row-level parameters passed to the component. Useful for debugging: just replace the name of the component you want to debug with ''debug''.',
5+
'Display all the parameters passed to the component. Useful for debugging: just replace the name of the component you want to debug with ''debug''.',
66
'bug'
77
);
88
-- Insert an example usage of the http_header component into the example table

sqlpage/templates/debug.handlebars

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
<h2>Debug output</h2>
2+
<pre>{{stringify this}}</pre>
23
{{#each_row}}
34
<pre>{{stringify this}}</pre>
45
{{/each_row}}

0 commit comments

Comments
 (0)