Skip to content

Commit 3d48145

Browse files
authored
docs: add debugging tips page 🐯 (#7790)
1 parent aec622b commit 3d48145

File tree

2 files changed

+22
-0
lines changed

2 files changed

+22
-0
lines changed
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
---
2+
title: Debugging | Introduction
3+
description: Learn a few debugging tips to streamline your journey with Qwik.
4+
contributors:
5+
- gioboa
6+
updated_at: '2025-08-08T00:00:00Z'
7+
created_at: '2025-08-08T00:00:00Z'
8+
---
9+
# Debugging
10+
11+
## ✨ Save yourself a bit of time with 'click to source'
12+
13+
During development, you can quickly access the source code of any element on a webpage by holding Option (⌥) or Alt key,
14+
click on whatever you're curious about, and Qwik will immediately open your source code right on top of that element.
15+
Seriously, any component, link, header - you name it, you can peek at its code.
16+
17+
Qwik tries to guess what code editor you like to use.
18+
If it guesses wrong, no biggie! Just give Qwik a hint by setting the `LAUNCH_EDITOR` environment variable.
19+
For example, if you're on a Mac and use VS Code, you'd type `export LAUNCH_EDITOR=code` in your terminal.
20+
21+
Under the hood [launch-editor library](https://github.com/yyx990803/launch-editor/tree/master) is used, here are the [supported editors](https://github.com/yyx990803/launch-editor/tree/master?tab=readme-ov-file#supported-editors)

packages/docs/src/routes/docs/menu.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,7 @@
110110
- [SSG](</docs/(qwikcity)/guides/static-site-generation/index.mdx>)
111111
- [Qwik Native Apps](</docs/(qwikcity)/guides/capacitor/index.mdx>)
112112
- [React Cheat Sheet](</docs/(qwikcity)/guides/react-cheat-sheet/index.mdx>)
113+
- [Debugging](</docs/(qwikcity)/guides/debugging/index.mdx>)
113114
- [Best Practices](</docs/(qwikcity)/guides/best-practices/index.mdx>)
114115
- [Bundle Optimization](</docs/(qwikcity)/guides/bundle/index.mdx>)
115116
- [Env variables](</docs/(qwikcity)/guides/env-variables/index.mdx>)

0 commit comments

Comments
 (0)