Αναζήτηση στην υποστήριξη

Προσοχή στις απάτες! Δεν θα σας ζητήσουμε ποτέ να καλέσετε ή να στείλετε μήνυμα σε κάποιον αριθμό τηλεφώνου ή να μοιραστείτε προσωπικά δεδομένα. Αναφέρετε τυχόν ύποπτη δραστηριότητα μέσω της επιλογής «Αναφορά κατάχρησης».

Learn More

stderr from native app

  • 3 απαντήσεις
  • 0 έχουν αυτό το πρόβλημα
  • 3 προβολές
  • Τελευταία απάντηση από martin.hajduch

more options

The web page

https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/Native_messaging#troubleshooting

says: if the native application sends any output to stderr, the browser will redirect it to the browser console.

Is that still supposed to work? I'm asking because it seems that in recent versions of firefox that no longer works. I do not see any output that my native app emits to stderr. I tried multiple systems (all Windows based) and multiple versions of Firefox (including "115.9.1esr (64-Bit)" and "116.0.3 (64-bit)")

The web page https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/Native_messaging#troubleshooting says: ''if the native application sends any output to stderr, the browser will redirect it to the browser console.'' Is that still supposed to work? I'm asking because it seems that in recent versions of firefox that no longer works. I do not see any output that my native app emits to stderr. I tried multiple systems (all Windows based) and multiple versions of Firefox (including "115.9.1esr (64-Bit)" and "116.0.3 (64-bit)")

Όλες οι απαντήσεις (3)

more options

I only heard about issues in Ubuntu. Did you check also global Console (Ctrl + Shift + J)?

Χρήσιμο;

more options

Are you looking at the extension's console (about:debugging > This Firefox > Extensions > Inspect > Console)?

Χρήσιμο;

more options

@TyDraniu: thanks for your reply. You are right - indeed the output shows up in the browser console. What confused me is that in my case it can take over a minute until the message emitted by the native app shows up in the browser console. I can see that from the timestamps in browser console and timestamps that are part of the native app log output. Or may be it depends on the amount of data produced by the native app - i.e. it shows in the browser console only after the native app produces enough output to fill some buffer ...

@zeroknight - in fact that is another thing - I expected the native app output to show up next to the background script log messages (i.e. in about:debugging ->Inspect->console, but that is not the case.

Either way, the answer to my question is: "Yes, it is supposed to work. And it does". And I have to deal with the details on my side. Thanks to both of you.

Τροποποιήθηκε στις από το χρήστη martin.hajduch

Χρήσιμο;

Υποβολή ερώτησης

Πρέπει να συνδεθείτε στον λογαριασμό σας για να απαντήσετε σε δημοσιεύσεις. Ξεκινήστε μια νέα ερώτηση εάν δεν διαθέτετε ακόμα λογαριασμό.