搜尋 Mozilla 技術支援網站

防止技術支援詐騙。我們絕對不會要求您撥打電話或發送簡訊,或是提供個人資訊。請用「回報濫用」功能回報可疑的行為。

Learn More

How to debug webextension around native messaging on Linux

  • 2 回覆
  • 3 有這個問題
  • 11 次檢視
  • 最近回覆由 Igor2604

more options

Browser  : FF Nightly ( 52.0) OS: Ubuntu 14.0 I have created a test webextension to use connectNative to launch a native app on linux. However the native application is not getting launched , it reads the json correct and the 'path' correctly because if I change either the .json name or the path of the native app to something invalid .. it complains about it with appropriate error. When I try to debug the extension and set a break point at port = browser.runtime.connectNative("myapp")  ; the Step-In does not step into this call , rather it does the step over . I get a port object but the application does not start and there is no error message. Would appreciate if some can give pointers on : 1. What could possible make the application not start ( .. i did chmod 777 to shell script which in turn will launch will launch the application a java program , as well as to the java program). 2.Why step in is not working for me ? 3.How can this be debugged. Thanks

Browser : FF Nightly ( 52.0) OS: Ubuntu 14.0 I have created a test webextension to use connectNative to launch a native app on linux. However the native application is not getting launched , it reads the json correct and the 'path' correctly because if I change either the .json name or the path of the native app to something invalid .. it complains about it with appropriate error. When I try to debug the extension and set a break point at port = browser.runtime.connectNative("myapp") ; the Step-In does not step into this call , rather it does the step over . I get a port object but the application does not start and there is no error message. Would appreciate if some can give pointers on : 1. What could possible make the application not start ( .. i did chmod 777 to shell script which in turn will launch will launch the application a java program , as well as to the java program). 2.Why step in is not working for me ? 3.How can this be debugged. Thanks

所有回覆 (2)

more options

You may get more help at https://discourse.mozilla-community.org/c/add-ons

This forum link is at bottom of the addons.mozilla.org pages.

more options

James said

You may get more help at https://discourse.mozilla-community.org/c/add-ons This forum link is at bottom of the addons.mozilla.org pages.

That site is not allowing new topics .. failing with "Internal Server error 500" :(