开发者

Remote debugging Java applets in Safari on OS X?

I have an applet that is problematic under Safari only (works everywhere else) and I need to debug it running in Safari.

The args to enable remote Java debugging are

-Djava.compiler=NONE -Xnoagent -Xdebug -Xrunjdwp:transport=dt_socket,address=2502,server=y,suspend=n

However, Java Preferences on OS X doesn't allow you to set any args for the VM and I can't find anywhere else that might allow it.

Anyone 开发者_JAVA技巧know where JVM flags can be set for Safari?


It may depend on which version of OSX you're using.

In some versions, you should be able to do this using Java Preferences (in /Applications/Utilities). Either there's a Java Applet Runtime Preferences box directly visible in the General tab, or (depending on the version), after selecting a VM in the list (still in the General tab), clicking on Options... opens a dialog box for setting these parameters in Applet Runtime Parameters.

Alternatively, there is some documentation here: http://support.apple.com/kb/HT3210

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜