Truffle 调试命令示例:添加和删除断点
下面是一些添加和删除断点的例子。注意添加(小写’b’)和删除(大写’b’)在大小写上的区别。
MagicSquare.sol: 11: event Generated(uint
n); 12: 13: function generateMagicSquare(uint
n) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ debug(develop:0x91c817a1...)> b 23 Breakpoint
added at line 23. debug(develop:0x91c817a1...)> B 23 Breakpoint
removed at line 23. debug(develop:0x91c817a1...)> b SquareLib:5 Breakpoint
added at line 5 in SquareLib.sol. debug(develop:0x91c817a1...)> b +10 Breakpoint
added at line 23. debug(develop:0x91c817a1...)> b Breakpoint
added atthis
point
in line 13. debug(develop:0x91c817a1...)> B all Removed allbreak
points.
Truffle 提供了2种交互式控制台,可用来与区块链网络进行交互: Truffle Console: 可以连接到任何以太坊区块链网络节点的基本交 ...