将Flash Player debug版升级到10.x后 使用profiler时一直报socket timeout
如果降低到9.x版,问题自然也就解决了,可是很希望使用10.x做debugger
解决方案:
将mm.cfg的第一行
PreloadSwf=<work space>\.metadata/.plugins/com.adobe.Flash.profiler/ProfilerAgent.swf?host=localhost&port=9999
需要 port=9999 与 Preferences->Flex->Profiler->Connections 一致
mm.cfg的位置
*Macintosh OS X
/Library/Application Support/Macromedia
*Windows 95/98/ME
%HOMEDRIVE%\%HOMEPATH%
*Windows 2000/XP
C:\Documents and Settings\username
*Windows Vista
C:\Users\username
*Linux
/home/username