Github user wuchangming commented on the pull request:

    https://github.com/apache/cordova-weinre/pull/13#issuecomment-193593096
  
    I fixed this issue with trick in my program:
    ```
    const weinre = require('weinre');
    var temPrepareStackTrace = Error.prepareStackTrace;
    Error.prepareStackTrace = (error, structuredStackTrace) => {
        try {
            temPrepareStackTrace(error, structuredStackTrace);
        } catch (e) {
            console.error(e);
        }
    }
    ```
    
    Actually, I really need `weinre`, I'm trying to build an easy tool (a 
proxy) for page debug in any scene ,Browser or Webview without extra configure.
    
    LOL, I just mean `callSite.getFunction()` sometimes will get an 
`undefined`, such as the Socket CONNECT Error I met.
    **utils.js**
    ```
    Line 176    func = callSite.getFunction(); // func = undefined
    ....
    Line 183    funcName = func.displayName || func.name || 
callSite.getFunctionName();  //  so an error occur here
    ```


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to