Truffle 调试命令示例:添加和删除断点

 

下面是一些添加和删除断点的例子。注意添加(小写’b’)和删除(大写’b’)在大小写上的区别。

MagicSquare.sol:
11:   event Generated(u

int

n); 12: 13: function generateMagicSquare(u

int

n) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ debug(develop:0x91c817a1...)> b 23 Breakpo

int

added at line 23. debug(develop:0x91c817a1...)> B 23 Breakpo

int

removed at line 23. debug(develop:0x91c817a1...)> b SquareLib:5 Breakpo

int

added at line 5 in SquareLib.sol. debug(develop:0x91c817a1...)> b +10 Breakpo

int

added at line 23. debug(develop:0x91c817a1...)> b Breakpo

int

added at

this

po

int

in line 13. debug(develop:0x91c817a1...)> B all Removed all

break

points.

  Truffle 提供了2种交互式控制台,可用来与区块链网络进行交互: Truffle Console: 可以连接到任何以太坊区块链网络节点的基本交 ...