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