Developing Flash/Flex on Google Chrome
I find Google Chrome fast startup and multiple processes, a key when developing Flash/Flex applications. And it’s my preferred target browser for stuff other…
I find Google Chrome fast startup and multiple processes, a key when developing Flash/Flex applications. And it's my preferred target browser for stuff other than HTML.
The problem is that, when debugging a Flash/Flex application and hitting a breakpoint, the Flash Player is stalled, chrome detect this stall and gives you this annoying message every 30, 60, 120, 240, etc' seconds:
—————————
Plug-in Unresponsive
—————————
The following plug-in is unresponsive: Shockwave Flash
Would you like to stop it?
—————————
Yes No
—————————
It's very annoying when the context jump to chrome exactly when you intent to click on F6.
Luckily we can use the -disable-hang-monitor startup switch to avoid this annoyance. (All Google Chrome Startup Switches).
Right-click on the desktop link to Google Chrome, select Properties and add the switch to the target:
…ChromeApplicationchrome.exe -disable-hang-monitor
From now on, start Chrome using this link, first, only than you'll be able to debug in a new tab/window and not get the Plug-in Unresponsive message. The first Chrome window has to be the one started from this link. A bit awkward I know, but that's the best there is right now.
Trying to add this Startup Switch to the browser parameters inside Flex Builder didn't worked for me either.
Related Posts
Comments (5)
Imported from the original blog
useful to know ! I also use the same setup - debug flex app on Chrome and browsing on Firefox.
Ive tried this but keep getting an error message that says
Application DataGoogleChromeApplicationchrome.exe -disable-hang-monitor" specified in the Target box is not valid. Make sure the path and file name are correct.
Any further help would be great
i also tried this and it does not work, and i am having this issue and it wont go away can you please help me, or advise how to fix this? i also get this target is not valid, i am not getting anywhere on this issue getting fixed. please help any additional information, or any other information to help fix this problem would be great no one will seem to help on this, thanks so much :)
You cannot put this start-up switch from within Flash Builder but from the link (generally on the desktop) you use to start chrome.
I.E: Right click on the Chrome.lnk on the desktop and change it,
C:Users<usernam>AppDataLocalGoogleChromeApplicationchrome.exe -disable-hang-monitor
Thank you Guya
Getting ridd of this message helps alot while developing!