You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cordova.apache.org by "Patrick Mueller (JIRA)" <ji...@apache.org> on 2012/08/13 14:12:37 UTC
[jira] [Created] (CB-1226) [weinre] programmatic control of
connection from the target
Patrick Mueller created CB-1226:
-----------------------------------
Summary: [weinre] programmatic control of connection from the target
Key: CB-1226
URL: https://issues.apache.org/jira/browse/CB-1226
Project: Apache Cordova
Issue Type: Wish
Reporter: Patrick Mueller
A few weinre users have expressed an interest in having programmatic control over the weinre connection. Basically, to start and stop a weinre session from their user-land JavaScript code.
This shouldn't be a huge deal, refactoring + coming up with "APIs". Where the API includes the global object to hang functions/properties off of. Presumably, a global named "weinre".
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (CB-1226) [weinre] programmatic control of
connection from the target
Posted by "Philippe Monnet (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CB-1226?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13433312#comment-13433312 ]
Philippe Monnet commented on CB-1226:
-------------------------------------
For example, one an API is exposed, one could potentially:
- dynamically inject Weinre programmatically using a specific id and channel
- pause/resume the message loop.
Example: you can add a start/stop debugging button in the prototype or test version of mobile app to trigger remote debugging of the mobile app (e.g. built on Apache Cordova).
> [weinre] programmatic control of connection from the target
> -----------------------------------------------------------
>
> Key: CB-1226
> URL: https://issues.apache.org/jira/browse/CB-1226
> Project: Apache Cordova
> Issue Type: Wish
> Reporter: Patrick Mueller
>
> A few weinre users have expressed an interest in having programmatic control over the weinre connection. Basically, to start and stop a weinre session from their user-land JavaScript code.
> This shouldn't be a huge deal, refactoring + coming up with "APIs". Where the API includes the global object to hang functions/properties off of. Presumably, a global named "weinre".
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (CB-1226) [weinre] programmatic control of
connection from the target
Posted by "Philippe Monnet (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CB-1226?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13434108#comment-13434108 ]
Philippe Monnet commented on CB-1226:
-------------------------------------
Patrick, that would be awesome! :-)
> [weinre] programmatic control of connection from the target
> -----------------------------------------------------------
>
> Key: CB-1226
> URL: https://issues.apache.org/jira/browse/CB-1226
> Project: Apache Cordova
> Issue Type: Wish
> Reporter: Patrick Mueller
>
> A few weinre users have expressed an interest in having programmatic control over the weinre connection. Basically, to start and stop a weinre session from their user-land JavaScript code.
> This shouldn't be a huge deal, refactoring + coming up with "APIs". Where the API includes the global object to hang functions/properties off of. Presumably, a global named "weinre".
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (CB-1226) [weinre] programmatic control of
connection from the target
Posted by "Patrick Mueller (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CB-1226?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13433353#comment-13433353 ]
Patrick Mueller commented on CB-1226:
-------------------------------------
I wasn't thinking that we'd be doing dynamic weinre injection, but don't have a big issue with it. Means refactoring the current target code into 3 pieces - one is the original all-in-one script, another is the thin shell that enables weinre injection, the last is the injected weinre piece loaded by the thin shell.
And since you mention Cordova, prolly makes sense to think of weinre being used as a "plugin", so that when we get the easy-peasy way of adding/removing plugins to your "app", you can add/remove weinre as needed.
> [weinre] programmatic control of connection from the target
> -----------------------------------------------------------
>
> Key: CB-1226
> URL: https://issues.apache.org/jira/browse/CB-1226
> Project: Apache Cordova
> Issue Type: Wish
> Reporter: Patrick Mueller
>
> A few weinre users have expressed an interest in having programmatic control over the weinre connection. Basically, to start and stop a weinre session from their user-land JavaScript code.
> This shouldn't be a huge deal, refactoring + coming up with "APIs". Where the API includes the global object to hang functions/properties off of. Presumably, a global named "weinre".
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira