Skip to content

Instantly share code, notes, and snippets.

@trickypr
Created February 10, 2023 10:26
Show Gist options
  • Select an option

  • Save trickypr/5f7971a7ea55772e9709ad795f82de07 to your computer and use it in GitHub Desktop.

Select an option

Save trickypr/5f7971a7ea55772e9709ad795f82de07 to your computer and use it in GitHub Desktop.
Log all sourcemap loads
diff --git a/devtools/client/debugger/src/reducers/sources-tree.js b/devtools/client/debugger/src/reducers/sources-tree.js
index 22a9de206d9a0e9f46d06f91044e93df9e12aad8..0640e2238d8c4c81d7c177c544ed5b5e90d7551d 100644
--- a/devtools/client/debugger/src/reducers/sources-tree.js
+++ b/devtools/client/debugger/src/reducers/sources-tree.js
@@ -250,6 +250,8 @@ function isSourceVisibleInSourceTree(
}
function addSource(threadItems, thread, source) {
+ console.log(source.id)
+
// Ensure creating or fetching the related Thread Item
let threadItem = threadItems.find(item => {
return item.threadActorID == thread;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment