MetaMask / snaps

Extend the functionality of MetaMask using Snaps
https://metamask.io/snaps/
Other
711 stars 546 forks source link

`console.log`s from Snap's context don't seem to make it to Firefox extension's `background.html` console #722

Open ziad-saab opened 1 year ago

ziad-saab commented 1 year ago

Tried in both the published extension and latest develop. Steps to reproduce:

  1. Load the "template snap" basic MetaMask Snap
  2. In the "hello" handler of onRpcRequest, add a console.log before returning
  3. Run the template snap with yarn start
  4. Go to Settings > Extensions > and Inspect the MetaMask background.html process
  5. Open localhost:8080 in Firefox
  6. Connect the snap
  7. Call the "hello" function
  8. Observe the lack of console.log in the Firefox debugger
Montoya commented 1 year ago

We will address this later on when we revisit Firefox testing

eldenpark commented 7 months ago

Still can't debug in Firefox. Console logging doesn't seem to reach the panel.

Steps I followed:

  1. Type about:debugging in the location bar
  2. Click Inspect on the "Metamask Flask" add-on.

image image

andreolf commented 7 months ago

Any update on this? @eldenpark came to our booth at ETHGlobal Istanbul asking if this is solved

BTQ-Alex commented 4 months ago

Can confirm this issue still persist.

Steps to reproduce: follow ziad-saab 's metamask-snaps-transaction-insights-workshop

noahsilencelab commented 1 month ago

Are there any ways to work around with this issue? Happens to me too:

Montoya commented 1 month ago

We do not have a fix for this issue. For now, if you need logging, we recommend testing in Google Chrome.