<html><head><style type='text/css'>body { font-family: 'Verdana'; font-size: 10pt; color: #000000}</style></head><body><P>Thanks for the detailed info. Its good to know this will come with swf9 support. If there are intermediate samples or designs/whitepapers describing how this will look - I will be glad to read them.</P>
<P>Thanks again<BR><BR>Gilad Parann-Nissany<BR><BR>----- Original Message -----<BR>From: "Henry Minsky" <henry.minsky@gmail.com><BR>To: "Gilad Parann-Nissany" <gilad.parann.nissany@g.ho.st><BR>Cc: laszlo-user@openlaszlo.org<BR>Sent: Friday, December 21, 2007 8:06:45 AM (GMT+0200) Auto-Detected<BR>Subject: Re: [Laszlo-user] Debugging OL with script debuggers, especially Flash<BR><BR>The "fdb" debugger which comes with flex can only debug apps which<BR>have been compiled with<BR>the flex debugging info, which is something that our compiler<BR>currently doesn't produce. Our compiler<BR>generates our own custom debugging annotations which we add for swf7,8<BR>and dhtml javascript code,<BR>and which does not interact with the (secret and proprietary) Flash<BR>debugger format.<BR><BR>Checking the "remote debug" option makes the app listen on a known<BR>LocalConnection, so that<BR>another Flash app can be attached to it. The "developers console"<BR>wrapper that we provide<BR>has such a client, so you can debug apps that way, and if you look at<BR>the source code in lps/admin/dev-console.lzx, you can see how it<BR>attached to the application being debugged, via LocalConnection.<BR><BR><BR><BR><BR>We are in the process of implementing swf9 support, and when that is<BR>complete, it will be possible to use the flex debugger with it.<BR><BR><BR>On Dec 20, 2007 8:22 PM, Gilad Parann-Nissany<BR><gilad.parann.nissany@g.ho.st> wrote:<BR>><BR>><BR>><BR>> Hi<BR>><BR>><BR>><BR>> I'm new to the list and to OL. Just joined an OL-based project and have been<BR>> getting up to speed. I've been looking at ways to debug the project with the<BR>> usual step-by-step debugger tools and was encouraged since for FireFox/DHTML<BR>> one is actually recommended by the OL doc (FireBug; see Chapter 50.<BR>> Debugging).<BR>><BR>><BR>><BR>> So I also checked out Flash. Our project's main focus right now is Flash not<BR>> DHTML.<BR>><BR>><BR>><BR>> In support I also found the following quote on the other list for OL<BR>> platform developers, as follows.<BR>><BR>><BR>><BR>> From: Henry Minsky <henry.minsky <at> gmail.com><BR>> Subject: Re: adding compilation errors to debugger?<BR>> Newsgroups: gmane.comp.java.openlaszlo.devel<BR>> Date: 2007-04-11 16:05:47 GMT (36 weeks, 1 day, 8 hours and 45 minutes ago)<BR>><BR>> Yeah, we actually have two obscure remote debug protocols that our swf apps<BR>> can support. There<BR>> is one based on a TCP socket protocol, using an XML command format based on<BR>> a standard called XDebug, and we also have a debug protocol based on Flash<BR>> LocalConnection, which you can use in the 4.0 debugger by clicking the<BR>> "remote debug console" option. We've only used the remote debugger for two<BR>> things, one was for the Eclipse IDE, and the other was to help Max debug the<BR>> new sprite kernel. But<BR>> we ought to push on this for a real platform-independent debugger.<BR>><BR>><BR>><BR>> So here is what I am looking to do. I want to take advantage of the Flash<BR>> stuff (LocalConnection etc).<BR>><BR>><BR>><BR>> I have already enabled that "remote debug console" flag and installed the<BR>> Flash Debug Player (version Flash 9). However no luck attaching any debugger<BR>> to it, I probably do not have the right clues as to what to install and how<BR>> to configure the setup. So my questions:<BR>><BR>><BR>><BR>> 1. Where do I get that fdb debugger (is it part of Flex Builder or the<BR>> Flex SDK or both or what)? How do I attach it to a running OL & SWF project?<BR>><BR>> 2. Are there any compilation flags to generate debug data that is<BR>> needed by fdb?<BR>><BR>> 3. The quote above implies I can get this – alternatively - running in<BR>> Eclipse with a debug perspective; which would be cool; did I understand<BR>> right and if so how?<BR>><BR>> 4. Alternatively will Flex Builder hook into OL (in the Flash case of<BR>> course); I don't mind at least trying that out if someone can guide me.<BR>><BR>> 5. Any gotchas? Is this foolish or will it work?<BR>><BR>> 6. Any docs on the topic?<BR>><BR>><BR>><BR>> Thanks<BR>><BR>> Gilad<BR>><BR>><BR>><BR>> Gilad Parann-Nissany<BR>><BR><BR><BR><BR>-- <BR>Henry Minsky<BR>Software Architect<BR>hminsky@laszlosystems.com<BR></P></body></html>