snaps icon indicating copy to clipboard operation
snaps copied to clipboard

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

Open ziad-saab opened this issue 3 years ago • 6 comments

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

ziad-saab avatar Aug 29 '22 22:08 ziad-saab

We will address this later on when we revisit Firefox testing

Montoya avatar Sep 13 '22 16:09 Montoya

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

eldenpark avatar Nov 18 '23 09:11 eldenpark

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

andreolf avatar Nov 18 '23 10:11 andreolf

Can confirm this issue still persist.

  • Firefox: 123.0 (64-bit)
  • MetaMask Flask: 11.10.1flask0

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

BTQ-Alex avatar Feb 29 '24 08:02 BTQ-Alex

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

  • Firefox: 124.0.1 (64-bit)
  • MetaMask Flask: 11.14.0flask0

noahsilencelab avatar May 20 '24 06:05 noahsilencelab

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

Montoya avatar May 20 '24 21:05 Montoya