-
-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
docs(debug): add server-side debug guide WIP #12506
base: main
Are you sure you want to change the base?
Conversation
|
2. Run the `--enable-source-maps` and `--inspect` flags when starting the Vite | ||
server with Node.js. For instance: `NODE_OPTIONS='--enable-source-maps | ||
--inspect' vite dev` (these flags may also be passed before running `vite preview`) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
let's keep all text as a single line and let the text editor handle wrapping
2. Run the `--enable-source-maps` and `--inspect` flags when starting the Vite | |
server with Node.js. For instance: `NODE_OPTIONS='--enable-source-maps | |
--inspect' vite dev` (these flags may also be passed before running `vite preview`) | |
2. Use the `--enable-source-maps` and `--inspect` flags when starting the Vite server with Node.js. For instance: `NODE_OPTIONS='--enable-source-maps --inspect' vite dev` (these flags may also be passed before running `vite preview`) |
2. Open your site in a new tab. Typically at `localhost:5173`. | ||
3. Open your browser's dev tools, and click on the "Open dedicated DevTools for Node.js" icon near the top-left. It should display the Node.js logo. | ||
4. Set up breakpoints and debug your application. | ||
1. TBD |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I assume the TBD was going to be something like this?
1. TBD | |
1. Add `build: { sourcemap: true }` to your Vite config file |
I can't seem to replicate the visual issue mentioned in the PR description. See the same section on the preview website at https://kit-svelte-qlsa25usm-svelte.vercel.app/docs/debugging#visual-studio-code . This PR should be good to be continued👍🏼 |
Closes #7320
This PR is currently in draft to investigate rendering issues:
Please don't delete this checklist! Before submitting the PR, please make sure you do the following:
Tests
pnpm test
and lint the project withpnpm lint
andpnpm check
Changesets
pnpm changeset
and following the prompts. Changesets that add features should beminor
and those that fix bugs should bepatch
. Please prefix changeset messages withfeat:
,fix:
, orchore:
.Edits