summaryrefslogtreecommitdiff
path: root/docs/src/pages/guides/debugging.md
diff options
context:
space:
mode:
authorGravatar Caleb Jasik <calebjasik@jasik.xyz> 2021-08-23 15:43:22 -0500
committerGravatar GitHub <noreply@github.com> 2021-08-23 16:43:22 -0400
commitefb41f22c34948fedfd51ba4e228e807ed7d856a (patch)
treeea5d3a033bb28cdf1578d167afe43551e913cb7d /docs/src/pages/guides/debugging.md
parent2fd004dcd99c09fc8eae423c24b31313568f039f (diff)
downloadastro-efb41f22c34948fedfd51ba4e228e807ed7d856a.tar.gz
astro-efb41f22c34948fedfd51ba4e228e807ed7d856a.tar.zst
astro-efb41f22c34948fedfd51ba4e228e807ed7d856a.zip
Add Astro `<Debug/>` component (#675)
* Initial MVP Debug component * Document the prettifying of the input * Just make `<Debug/>` a wrapper around `<Prism/>` lol * feat: add details/summary debug component * chore: remove Props (unused) * fix: prefer `div` to semantic elements * chore: format * fix: prop-drill `class` into components * fix: ensure `astro/components` are evaluated lazily * feat(debug): export debug component from `astro/debug` * fix: minimal example local snowpack config * docs: add debugging docs * chore: add changeset * docs: update debug docs Co-authored-by: Nate Moore <nate@skypack.dev>
Diffstat (limited to 'docs/src/pages/guides/debugging.md')
-rw-r--r--docs/src/pages/guides/debugging.md6
1 files changed, 6 insertions, 0 deletions
diff --git a/docs/src/pages/guides/debugging.md b/docs/src/pages/guides/debugging.md
new file mode 100644
index 000000000..561af0267
--- /dev/null
+++ b/docs/src/pages/guides/debugging.md
@@ -0,0 +1,6 @@
+---
+layout: ~/layouts/MainLayout.astro
+title: Debugging
+---
+
+Astro runs on the server and logs directly to your terminal, so it can be difficult to debug values from Astro. Astro's built-in `<Debug>` component can help you inspect values inside your files on the clientside. Read more about the [built-in Debug Component](/reference/builtin-components#debug-).