[cc-ing laszlo-dev, for archiving] On 2010-06-22, at 03:02, Raju Bitter wrote:
> I'm wondering what the best way to debug mobile OpenLaszlo > applications would be. Could the remote debug feature be tweaked in a > way to integrate between the mobile device and a browser instance > running on the development PC? That would actually be pretty cool, but > I don't know the debug mechanism well enough to judge if it's possible. This should be very doable. The following bugs are related: http://jira.openlaszlo.org/jira/browse/LPP-7362 http://jira.openlaszlo.org/jira/browse/LPP-7406 but perhaps the easiest approach is to look at: WEB-INF/lps/lfc/compiler/LzBootstrapDebugService:LzDebugConsole this defines the protocol from the debugger to the 'console window' (i.e., the window that displays the output). This is fairly modular and you will find a number of subclasses already implemented for the different runtimes and for various bootstrapping scenarios, such as no debugger, a debugger that uses an HTML frame, and the 'console remote debugger' that uses a window in the developer console. (The protocol for calling back to the debugger from the console window, for the eval pane, is not so well defined. It would be nice to codify that.) If you look at: WEB-INF/lps/lfc/debugger/platform/swf/LzDebug:makeDebugWindow You will see this is where the debugger makes its decision as to what console it is going to attach to. If you look at: WEB-INF/lps/lfc/debugger/platform/swf/LzFlashRemote:LzFlashRemoteDebugConsole You will see the implementation of the remote console that runs in the developer console using the Flash LocalConnection API. It should be fairly straightforward to extend this to do what you want. It's on our wishlist. Just haven't had time.
