Skip to main content
Known Participant
September 14, 2009
Question

Debugging Flex Compiler Basics

  • September 14, 2009
  • 2 replies
  • 1478 views

Hello,

I have set up Eclipse (Europa - carbon OSX), with the Flex Builder 3 Eclipse Plugin, set all the variables and imported all of the svn Gumbo project into Eclipse, and I'm not getting any errors, and I can successfully run the sparkTest project!  Hooray!

Now I would like to be able to debug the compiler to see how it works, but I have no idea where to start... I'd just like to start putting breakpoints everywhere but when I do that nothing happens?  Any ideas how to get started?

Thanks!

Lance

This topic has been closed for replies.

2 replies

Participant
September 14, 2009

The Flex 3 SDK docs are probably still relevant here: http://livedocs.adobe.com/flex/3/html/help.html?content=debugging_02.html

To get started quickly, simply type "tutorial".

viatroposAuthor
Known Participant
September 14, 2009

I'll check these out more thoroughly later tonight.

However, I have read through those documents a few times but I still wonder how to just do simple breakpoints and whatnot in Eclipse for the Compiler source code, it seems like you guys are probably doing that right now.  If so, could you show me quickly how to do that?  If not, what do you guys use to develop/debug the compiler, is it all command line or do you use Eclipse?

Thanks again,

Lance

matt_chotin
Inspiring
September 14, 2009

I think most folks use Eclipse for developing the compiler. You said

you have the project set up right? So now it's a matter of opening up

the files that were mentioned, putting a breakpoint in the major

method (like parse1) and then letting that get hit. And away you go.

Those phases that are called out in the architecture doc are

essentially naming the appropriate methods for you to put breakpoints

if you want to see what's going on. Then just start stepping. The

debugger uses the same commands as you'd use in Flex Builder.

Matt

matt_chotin
Inspiring
September 14, 2009

this might be an OK starting point: http://opensource.adobe.com/wiki/display/flexsdk/Flex3Compiler+Design