<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&nbsp;Parann-Nissany<BR><BR>----- Original Message -----<BR>From: "Henry Minsky" &lt;henry.minsky@gmail.com&gt;<BR>To: "Gilad Parann-Nissany" &lt;gilad.parann.nissany@g.ho.st&gt;<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>&lt;gilad.parann.nissany@g.ho.st&gt; wrote:<BR>&gt;<BR>&gt;<BR>&gt;<BR>&gt; Hi<BR>&gt;<BR>&gt;<BR>&gt;<BR>&gt; I'm new to the list and to OL. Just joined an OL-based project and have been<BR>&gt; getting up to speed. I've been looking at ways to debug the project with the<BR>&gt; usual step-by-step debugger tools and was encouraged since for FireFox/DHTML<BR>&gt; one is actually recommended by the OL doc (FireBug; see Chapter 50.<BR>&gt; Debugging).<BR>&gt;<BR>&gt;<BR>&gt;<BR>&gt; So I also checked out Flash. Our project's main focus right now is Flash not<BR>&gt; DHTML.<BR>&gt;<BR>&gt;<BR>&gt;<BR>&gt; In support I also found the following quote on the other list for OL<BR>&gt; platform developers, as follows.<BR>&gt;<BR>&gt;<BR>&gt;<BR>&gt; From: Henry Minsky &lt;henry.minsky &lt;at&gt; gmail.com&gt;<BR>&gt; Subject: Re: adding compilation errors to debugger?<BR>&gt; Newsgroups: gmane.comp.java.openlaszlo.devel<BR>&gt; Date: 2007-04-11 16:05:47 GMT (36 weeks, 1 day, 8 hours and 45 minutes ago)<BR>&gt;<BR>&gt; Yeah, we actually have two obscure remote debug protocols that our swf apps<BR>&gt; can support. There<BR>&gt; is one based on a TCP socket protocol, using an XML &nbsp;command format based on<BR>&gt; a standard called XDebug, and we also have a debug protocol based on Flash<BR>&gt; LocalConnection, which you can use in the 4.0 debugger by clicking the<BR>&gt; "remote debug console" option. We've only used the remote debugger for two<BR>&gt; things, one was for the Eclipse IDE, and the other was to help Max debug the<BR>&gt; new sprite kernel. But<BR>&gt; we ought to push on this for a real platform-independent debugger.<BR>&gt;<BR>&gt;<BR>&gt;<BR>&gt; So here is what I am looking to do. I want to take advantage of the Flash<BR>&gt; stuff (LocalConnection etc).<BR>&gt;<BR>&gt;<BR>&gt;<BR>&gt; I have already enabled that "remote debug console" flag and installed the<BR>&gt; Flash Debug Player (version Flash 9). However no luck attaching any debugger<BR>&gt; to it, I probably do not have the right clues as to what to install and how<BR>&gt; to configure the setup. So my questions:<BR>&gt;<BR>&gt;<BR>&gt;<BR>&gt; 1. &nbsp; &nbsp; &nbsp; Where do I get that fdb debugger (is it part of Flex Builder or the<BR>&gt; Flex SDK or both or what)? How do I attach it to a running OL &amp; SWF project?<BR>&gt;<BR>&gt; 2. &nbsp; &nbsp; &nbsp; Are there any compilation flags to generate debug data that is<BR>&gt; needed by fdb?<BR>&gt;<BR>&gt; 3. &nbsp; &nbsp; &nbsp; The quote above implies I can get this – alternatively - running in<BR>&gt; Eclipse with a debug perspective; which would be cool; did I understand<BR>&gt; right and if so how?<BR>&gt;<BR>&gt; 4. &nbsp; &nbsp; &nbsp; Alternatively will Flex Builder hook into OL (in the Flash case of<BR>&gt; course); I don't mind at least trying that out if someone can guide me.<BR>&gt;<BR>&gt; 5. &nbsp; &nbsp; &nbsp; Any gotchas? Is this foolish or will it work?<BR>&gt;<BR>&gt; 6. &nbsp; &nbsp; &nbsp; Any docs on the topic?<BR>&gt;<BR>&gt;<BR>&gt;<BR>&gt; Thanks<BR>&gt;<BR>&gt; Gilad<BR>&gt;<BR>&gt;<BR>&gt;<BR>&gt; Gilad Parann-Nissany<BR>&gt;<BR><BR><BR><BR>-- <BR>Henry Minsky<BR>Software Architect<BR>hminsky@laszlosystems.com<BR></P></body></html>