truffle框架之debug断掉提示总结(有一个很大的坑!)及常用调试命令

如果要使用truffle来debug断点调试,就必须使用命令来编译部署合约【注:不能直接在remix编译器上部署,否则你无法定位到你想要的hash调试上】

truffle compile

truffle migrate

【但是:使用truffle migrate部署完毕之后,可以在remix编译器上通过合约地址直接调用方法测试是OK的】

 

debug常用命令总结

Commands:
(enter) last command entered (step next)
(o) step over, (i) step into, (u) step out, (n) step next
(;) step instruction (include number to step multiple), (p) print instruction
(h) print this help, (q) quit, (r) reset
(b) add breakpoint, (B) remove breakpoint, (c) continue until breakpoint
(+) add watch expression (`+:<expr>`), (-) remove watch expression (-:<expr>)
(?) list existing watch expressions
(v) print variables and values, (:) evaluate expression - see `v`


常用命令:
(enter)最后输入的命令(下一步)
(o) step over, (i) step into, (u) step out, (n) step next
(;) step指令(包括number to step multiple), (p) print指令
(h)打印此帮助,(q)退出,(r)重置
(b)添加断点,(b)删除断点,(c)继续,直到断点
(+)添加手表表达式(' +: '),(-)删除手表表达式(-:)
(?)列出现有的手表表达式
(v)打印变量和值,(:)计算表达式——见“v”

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值