Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Flash Builder 4.5 debugger terminates | Safari

So it seems all the major browser vendors are sandboxing the flash plugin, and terminating it after a certain amount of inactivity. This is problematic for developers who connect the Flash Builder Debugger to the browser. If you stand on a breakpoint for more than 45 seconds, it terminates your session.

I've found a config param to change on firefox that disabled this functionality, but i havent found a similar command for Safari/ Webkit / Chrome.

http://kb2.adobe.com/cps/899/cpsid_89943.html

"To prevent Firefox from terminating plug-ins that it considers unresponsive, set dom.ipc.plugins.timeoutSecs to -1 in about:config. For more information, see Plugin hang detector."

like image 328
Jack Murphy Avatar asked Sep 19 '11 23:09

Jack Murphy


People also ask

What to do when Safari doesn't open or finish loading?

If Safari doesn't open a webpage or isn’t working as expected Reload the page. If a page doesn't open or finish loading, try to reload it: Choose View > Reload Page or press... Install software updates. Install all available Apple software updates, which can include updates for Safari. If you... ...

How do I resolve issues with Safari on my Device?

Solutions for issues that affect Safari on iPhone, iPad, or iPod touch are also available. If a page doesn't open or finish loading, try to reload it: Choose View > Reload Page or press Command-R.

How to clear cache on safari?

Use these steps to remove cookies, cache, and other data stored by Safari for a specific site: Choose Safari > Preferences. Click the Privacy icon. Click the Details button. Search for the name or domain of the website whose data you want to remove.

Why can’t I see the develop menu in Safari?

If you don’t see the Develop menu in the menu bar, choose Safari > Preferences, click Advanced, then select “Show Develop menu in menu bar.” Helpful? Please don’t include any personal information in your comment. Maximum character limit is 250.


3 Answers

Inactivity resets by browser:

  • Chrome
    Pass --disable-hang-monitor on the command line.

  • Firefox
    Type about:config in the adress bar. Find dom.ipc.plugins.timeoutSecs and set its value to -1.

  • Safari
    No configuration switches, use SafariNoTimeout.

like image 162
Noah Avatar answered Oct 03 '22 21:10

Noah


I switched to Firefox when I encountered this problem. But I just found this if you dont want to switch browser:

http://www.macupdate.com/app/mac/11457/safarinotimeout/

"SafariNoTimeout is an essential tool for any web developer or a user who has ever experienced an annoying 60 seconds timeout while waiting for a web page. "

like image 25
Mattias Avatar answered Oct 03 '22 21:10

Mattias


If you're running a nightly build of webkit you can enter the following in your command line, then debug in Webkit

defaults write com.apple.Safari WebKitDisablePluginProcessMessageTimeout YES

Now when you launch your debugger pointed to WebKit, it wont terminate the plugin.

Note: You can target Webkit in you Pref - Web Browser - Add New

Name: Webkit
Location: /Applications/WebKit.app/Contents/MacOS/WebKit
like image 27
Jack Murphy Avatar answered Oct 03 '22 21:10

Jack Murphy