在freeswitch里,如果执行java程序而程序有错的话,是无法直接查看调试错误信息的,还好有远程调试功能。
在java.conf.xml中启用:
<option value="-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=your-server-ip:8000"/>
在eclipse中,Debug Configurations,Remote Java Application,New Configuration,填好基本信息,其中connection properties部分的Host就是上面的your-server-ip
保存开启debug,这样在freeswitch中再运行java程序时,会自动在本地eclipse中进行调试了~
祝大家好运~