Mono-D在MacOS上的设置

1. 下载DMD

建议下载tar.xz压缩包,不建议下载dmg安装包,因为dmg中没有src,而后面需要用src中的内容设置代Code Completion。

地址:http://dlang.org/download.html

 

2. 安装Xamarin Studio

地址:http://www.mono-project.com/download/

 

3. 在Xamarin Studio > Add-in Manager... > Gallery中搜索D Language Binding,并安装

 

4. 在Xamarin Studio > Preferences... > Environment > D > Complier Toolchains > DMD2 > Toolchain Bin Path中添加 /dmd2/osx/bin/

在include中添加 

/dmd2/src/phobos
/dmd2/src/druntime

 

5. 重启Xamarin Studio

 

 

注意

目前Debug功能在Xamarin Stutdio上无法正常工作,如果出现GDB无法工作的情况,需要禁用Debug插件。

 

 

http://wiki.dlang.org/Mono-D

http://mono-d.alexanderbothe.com/wordpress/tag/debugging/

你可能感兴趣的:(Mono-D在MacOS上的设置)