Debug javascript in opera mini

前端 未结 2 1680
忘掉有多难
忘掉有多难 2021-02-06 12:59

How do i debug javascript in opera mini?

I have already installed opera mini emulator.

can someone help me how do i debug javascript remotely with dragonfly (fir

相关标签:
2条回答
  • 2021-02-06 13:22

    Opera Mini supports console API like this:

    server:console?post=http://url/to/your/script
    

    OR

    You can dump your log data to source and get source using this command(this fill display source code of current/last page for your device):

    server:source
    

    OR

    Use remote console services like jsconsole.com. You add script tag with jsconsole script and key. After this use this key on jsconsole site to get the log.

    NB: jsconsole script rewrites console.log calling via ajax request

    0 讨论(0)
  • 2021-02-06 13:42

    There is, at least for now, no support for debugging a javascript directly in Opera Mini.

    You can use document.write to output progress/debug messanges, that is about the extent of debugging posibilities.

    Could you point to the script, or at least describe what it is trying to do?

    Opera Mini is fairly different from a normal browser, scripts are run on the transcoding servers, and the result of the run is then passed to the client, which can not in fact run scripts.

    The client can then pass on clicks and some other events to the script when the user interact with the page, which might change the state/look of the page on the server, which is then sent to the client.

    0 讨论(0)
提交回复
热议问题