Problem debugging maplibre-gl-js #4254
Unanswered
WinstonSmith77
asked this question in
Q&A
Replies: 1 comment 4 replies
-
Some parts of the code run in the worker thread, which I believe you can't use a breakpoint for... |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I have a problem debugging typescript code.
clone maplibre-gl-js
npm install and npm run build-dev
Created an test projected to include import '../../maplibre/maplibre-gl-js/dist/maplibre-gl-dev.js';
This includes maplibre-gl-dev.js.map ?!
Only some parts of code can be stopped by breakpoints. Like
export async function loadGlyphRange(fontstack: string, range: number, urlTemplate: string, requestManager: RequestManager):
in load_glyph_range.tsOther like
constructor(options: BucketParameters<SymbolStyleLayer>)
in symbol_buckets.ts can't.Debugging with 'debugger' command in code works but also does not stop in ts but in some cached js.
So my question is: Is there some way to fix this? How do the maintainers do the debugging?
Beta Was this translation helpful? Give feedback.
All reactions