logo图片
Truffle教程

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 at this point in line 13.
debug(develop:0x91c817a1...)> B all
Removed all breakpoints.
昵称: 邮箱:
Copyright © 2020 立地货 All Rights Reserved.
备案号:京ICP备14037608号-4