Flash :: Make Flex Builder Debugger Start Listening For Incoming Debug Session Connections
Nov 10, 2009
Is there any way to get Flex Builder to connect to an existing browser session running Flash Player Debugger? I can connect to FDB like this, but with Builder I need to click Debug and rush to close the newly opened browser window before it loads the Flash file and then go back to the session I want to connect and right click it to start the debugger.
Unfortunately this is not very reliable as I can't always beat the window opening, requiring several attempts before being able to connect to the session I am interested in. If I could just tell Builder 'Start debugging' and then have it wait for the connection, I could now calmly go over to the browser, right click, hit debug, provide the IP and voila. This would allow me to inspect variables on a hard to replicate bug on a session running on a tester's computer.
The window for Flash Builder's mobile device emulator (in AIR) seems to be a bit too tall for a resolution running 1280x800. Is there a way to make it run smaller? 1280x800 is the highest resolution set-able on the laptop being used to develop for it.
I've tried everything, firewalls, reinstalling etc etc. I can't get the debugger to connect no matter what I do.
I'm just writing a simple Air application, with Flex and Actionscript. But any type of debugging on any type of application doesn't work. I get this message
The Flash Builder debugger failed to connect to the running application.
I've started getting the following when I try to run FB4 projects:
/Library/Internet Plug-Ins/Flash Player.plugin
Flash Builder cannot locate the required debugger version of Adobe Flash Player. You might need to install the debugger version of the Flash Player or reinstall Flash Builder.
I've installed the debugger version of the Flash Player. Didn't work. I've reinstalled Flash Builder. Didn't work. I tried using Safari instead of Firefox. Didn't work.
When I go to Macintosh HD/Library/Internet Plug-Ins/ in the finder, I can see Flash Player.plugin right there. But when I go to Username/Library/Internet Plug-Ins the entire folder is blank. So I tried copying Flash Player.plugin to the latter folder. Didn't work.
Mac questions (I'm new to mac): Which of these is really the root? Is it normal that there should be duplicate directories like this, with non-duplicate contents??
In FB I opened Windows --> preferences --> Flash Builder --> Profiler --> Player/Browser and browsed to /Applications/Adobe Flash CS5/Players/Debug/Flash Player Debugger.app
What does Flash Player Debugger.app have to do with Flash Player.plugin?
I've been working in Flash BUilder 4.0. I installed Flash Builder 4.5, and switched to the workspace I had used for 4.0. Then we were told to go back to 4.0, and now I can't run or debug. I can build, but then I have to double click on the .html file to run. Right clicking doesn't bring up run or debug, and the run and debug icons are not in my toolbar.
I have a AIR for mobile pure AS3 project that saves a file on the device the first time it runs into the file.applicationStorage directory. The second and subsequent times the application launches I need it to look at that file I've saved.
My problem is that when I debug the application from Flex Builder 4.5 it wipes the application and application storage. So the application always behaves like it is running for the first time. I can't get into a debug session and step through my code as I read in that file.
Does anyone know how to connect to a debug session running on the device? My device in this case is an Android Samsung Galaxy S.
I am debugging both a flash cs4 project and a flash builder project, actually the flash builder project will load the flash cs4 project thru swfloader, but the system can only support one debugger at a time. So I am seeking a method to debug it simultaneously...
My project is open - I see the expanded sub-folders. There are not compile errors showing up. Under the project's properties I see Run/Debug Settings but the New button is greyed out.
I just finished my installation of Adobe Flash Builder 4. I've definitely installed the most recent flash player from Adobe's website onto my computer. Also, in the run configurations of flash builder 4, I changed the source path from the .html file to the .swf file that is generated. I don't need to test it in a web browser, I just want to run the swf in flash player.
I only have 1 .as file in my actionscript project and there is no code written in it other than the package, class and main function statements. When I run the .html file, it runs fine, and debugs fine. However, when I switch the source path to the .swf file, it runs fine but doesn't debug!
When I debug it, the progress gets stuck at 57% and it says "Waiting for Adobe Flash Player to connect to debugger..." in the "Progress" tab. After a few minutes a window pops up that says:
"Failed to connect. The session has timed out. Ensure that you have run the application with debugging on and that I have the debugger version of flash player."
What can I do to fix this? I am on an intel Mac running OS 10.6.5.
I have an html file which I want to use every time I debug my flex application. I don't want an new html file to be generated every time. How can I do this?
In my flex 3.5 project, I have a class (MyItem) extending Canvas. In this I have declared a private variable named itemInfo which is type of ItemInfo (which is another subclass of Canvas).
I wrote code to hide/show the iteminfo when the mouse is over/out of MyItem. I am not getting any error but it is not showing the itemInfo as expected, when debugged the code, surprisingly the variables tab in debug window does not have the variable itemInfo at all.
I have declared a dummy:int variable and it is also not visible.
Is it possible to make the content assist in Flex Builder to pop up as soon as I start typing and not just after pressing CTRL+SPACE? It does pop up by itself after a '.' (foo.) or a ':' (var foo:). But to get a list of available variables and methods I have to press CTRL+SPACE.
I'm building a video player using Flash CS4 (hereby referred to as "Flash") to create the graphic symbols and compiling and debugging with Flash Builder 4 ("FB4"). Here are the steps I take in my current workflow: --Create the graphic symbols in Flash. I've created a few different symbols for the player, but I'll focus on just the play/pause button ("ppbutton") here. --In the Library panel, I go to the ppbutton symbol's Linkage properties and link to a class named assets.PlayPauseButtonAsset that extends MovieClip. I do not actually have an assets package nor do I have a class file for PlayPauseButtonAsset as Flash will create them for me when I publish.
--In Flash's Publish settings, I set the project to export a SWC that will be used in FB4, called VideoPlayerAssets.swc. --After the SWC is created, I create my FB4 project called "VideoPlayer" and add the SWC to my path. FB4 creates the class VideoPlayer in the default package automatically. --In VideoPlayer.as, I import assets.*, which imports all of the symbol classes I created in Flash and are available via VideoPlayerAssets.swc. I can now instantiate the ppbutton and add to the stage, like this:
Is it at all possible to connect the Flash Player debug version to the debugger in Flex Builder using source code? I'm running an app which has no right click menu, and I therefore can't right click and select connect to debugger.
I am using the Flex Builder 3 debugger almost every day and it's starting to be a real pain that the 'Variables' tab in the 'Flex Debugging' view doesn't show local variables, only 'this' is displayed.
Also I can not add Watch Expressions for local variables.
Am I forgetting something here or is the debugger just very limited?
I am running on Windows XP and recently updated Flash Player from v9 to v10.1. And Now, in the Debug Console under Flex Builder, I am getting a lot of debug statements(I think that is assembly). Below is an example, of what I get:
Does anyone know if there is a way to make the new Package Explorer window in Flash Builder emulate Flex Builders 'Flex navigator' window?
Bottom line is I don't always need to peer into SWC's, and I don't like having a 'default package' automatically created for me. Not sure why the interface wasn't made simpler, allowing access to more power and complexity only if necessary. I want to focus on the code, not on how to navigate and use the bells and whistles in the coding environment.
Sometimes (too often...) some webservices "hang". I can see the clock cursor in my app and the network monitor of FB2 shows the webservice as "pending". After waiting a long time, the status changes to "OK" and the clock cursor disappears. How can I find out why a webservice takes sometimes minutes while it usually takes not even a second?
My webservices run on my localhost during development using the Zend AMF Server.
I am trying to use Flex builder for the first time in years. I haven't used the "Run Application" option before, and when I do that now it tells me "Errors exist in required projects" and whether I should proceed. I would like to debug those errors. Does anyone know how I can do that? PS: When I click the "Debug" button, it does exactly the same thing. I don't see error output in the console views.
Damndest thing. Every once in a while, I'll make a change to some part of my Flash application, while working in Flash Builder 4, and when I click Debug Play, it starts running with the old code and the old variables, even though the code I'm looking at in the code window is the new, changed code. I can still advance step by step, but the advances don't align with the new code. They seem to be aligning with the old, not visible code. I can eliminate variables entirely, save, build clean, and when I run, it still shows the old variables in the Variables window. As I can not find any mention of this on the Internet, I logically conclude that this is some ancient curse directed solely at me.
I have my flash set to log any errors to the flashlog.txt that's found in the macromedia fileThe above is all working fine.But even though it logs my errors it still throws up the flash debug popups.I don't want my users to see these pop ups.Instead I only wish to be able view the flashlog.txt to see what errors have occurred over time.Is their away of doing this?Are their any other variables to be added to the mm.cfg?Anything else I can do other than...ErrorReportingEnable=1TraceOutputFileEnable=1
I'm trying to setup my bin-debug folder so that the structure looks like this[code]...
I've tried setting the project's output folder to: bin-debug/assets/swf which does get my main.swf where I want it, but then my other source folders get dumped into that swf folder as well. What I would really like is to tell Flash Builder to put my swf into a nested folder and to be able to specify where my build folders' output goes as well. Is this at all possible without resorting to ANT scripts?
I identify my current installed debug version? Basically, I am using Flex 3, for past 2-3 days whenever I launch any Project or debug it, I get the message box saying "Flex Builder requires a more recent version of Flash Player." It says my curent FP as 9.0.115.0 and debug version as 9.0.45.0. However, my actual FP version if FP 10.0.22.87. I don't understand why this confussion! I don't know how can I know my actual version of Debug player.
I am developing a web app using Flash Builder. A graphic designer came up with some designs for the app but I have never converted a photoshop document into a Flex skin or for that matter made a custom Flex skin by any means. Is it possible to take the photoshop work and put it into Flash or something? What exactly goes into Flex skins? If I were to contact this out, how much am I looking to spend on a 8 page app?
I recently installed Adobe Flash Builder 4 in standalone mode on a new installation of Windows 7 x64.I can load and build an existing Flex 4.1 project I have been working on, but when I go to run the project in the browser (Firefox 3.6.15), I get:'Launching BensApp' has encountered a problem. An internal error occurred during: 'Launching BensApp'
Clicking the Details >> button reveals:
java.lang.NullPointerException
My project is creating the SWF and container HTML page as expected, but fails to load the browser.