How to debug a Flex app on a live server

Have you ever launched a Flex app into a production environment only to find out that it doesn't work?! You probably wanted run the debugger right then and there to trace the problem. Here's how using Flex Builder 3.
  • Step 1 Overwrite the version on the server with the debug version usually found in your bin-debug folder while developing.
  • Step 2 In Flex builder go to the top menu and select Project -> Properties
  • Step 3 Go to "Run/Debug" Settings
  • Step 4 Your app should be listed under Launch Configuratoins, select it and press "Edit"
  • Step 5 Uncheck the "use defaults" button in the lower portion and then in the first field called "debug" type the URL of your app on the server
  • Step 6 Hit Apply, and then go ahead and debug! You're good to go!
Obviously once you've solved the problem you'll want to export a release build to place on the server as it will be much smaller.

Recent comments