dimfeld / svelte-maplibre

Svelte bindings for the MapLibre mapping library
https://svelte-maplibre.vercel.app
MIT License
283 stars 34 forks source link

Debugging #104

Closed MisterVladimir closed 6 months ago

MisterVladimir commented 7 months ago

In order to better understand how the example code worked, I tried running a debugger using WebStorm only to find that server-side debugging is not implemented in SvelteKit. With a little bit of effort, I was able to get server side debugging working using vavite-loader, as recommended in the link above. Could we enable server-side debugging? I'm happy to submit a PR.

dimfeld commented 7 months ago

I think you'd be better off debugging in the browser inspector. Maplibre doesn't even run on the server since it renders to WebGL, so you won't really get much benefit from debugging on the server IMO.