Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

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

How to debug in vscode and mapping to chrome. #2594

Closed
hxse opened this issue Feb 9, 2021 · 5 comments
Closed

How to debug in vscode and mapping to chrome. #2594

hxse opened this issue Feb 9, 2021 · 5 comments

Comments

@hxse
Copy link

hxse commented Feb 9, 2021

When my chrome tab was opened with the yarn run snowpack dev command.
How to configure launch.json to be able to set breakpoint in vscode and mapping to chrome.
Is there a case?

@kputnins
Copy link

kputnins commented Feb 10, 2021

I was testing snowpack out with React + Typescript and had to set sourcemap: true in buildOptions and hmr: false in devOptions. Then breakpoints worked with the standard Chrome launch settings.

But then there is no hot-module-reloading :(

@jonlepage
Copy link

jonlepage commented Feb 15, 2021

without a local sourcemap, we cant debug with vscode.
I really tried everything, but no solution.
I success to connect vscode with devtool --remote-debugging-port=9222, for get log, but breakpoint in vscode just not work !
image
No issue with Parcel bundler , but Parcel produce a local sourcemap thas make easy to connect to vscode , chrome,electron,nwjs...
or maybe we need a example for Snowpack !

if anyone have a idea ! tell me i will fix my boilerplate for my students !
https://github.com/nwutils/SnowPack-nw/blob/7565d94c10f8ce0629839faf36c832fa897e4808/.vscode/launch.json#L12
https://github.com/nwutils/SnowPack-nw/blob/7565d94c10f8ce0629839faf36c832fa897e4808/package.json#L28

@jonlepage
Copy link

ha , it explain a lot , discutions here !
#1213
#1876

@johnpittman
Copy link

johnpittman commented Feb 21, 2021

Can't use snowpack without this feature. The productivity of breakpoints in vscode vs (console.logs or browser dev tools breakpoints) is such a high contrast in trade-off it's not worth using.

@jonlepage
Copy link

jonlepage commented Feb 21, 2021

Can't use snowpack without this feature. The productivity of breakpoints in vscode vs (console.logs or browser dev tools breakpoints) is such a high contrast in trade-off it's not worth using.

maybe in few week #1876 (reply in thread)

Repository owner locked and limited conversation to collaborators Feb 28, 2021

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants