首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 数据库 > 其他数据库 >

dbg 工具施用

2012-11-04 
dbg 工具使用主要步骤自己记下 1 -module(test_dbg).2 -export([send/1, test/0, hello/0]).34 test() -5

dbg 工具使用

主要步骤自己记下

1 -module(test_dbg). 2 -export([send/1, test/0, hello/0]). 3 4 test() -> 5 Pid = spawn(?MODULE, hello, []), 6 Pid. 7 8 send(Pid) -> 9 Pid ! {self(),test}, 10 loop(). 11 12 hello() -> 13 receive 14 {P,test} -> 15 P ! returnok 16 end, 17 ok. 18 loop() -> 19 receive 20 T -> 21 T 22 after 11 -> 23 timeout 24 end. "test_dbg.erl" 24L, 341C 已写入 24,8 全部?

热点排行