5.5. PikaDebug debugger
Add the dependency of PikaStdLib to requestment.txt. The version number of PikaStdLib should be the same as the version number of the kernel.
Run pikaPackage.exe
5.5.2. class Debuger():
The method is the method executed when the object is created, and the user does not need to know about it. The set_trace()
method can place a breakpoint in the code. When the code execution reaches the breakpoint, it will stop and open the (pika-debug)
terminal. The user can enter commands in the terminal (c : continue running, q : to end debugging), or a python interactive call ( , i = 10
).
Example:
n: (next) continue to run to the next breakpoint.
q: (quit) to exit debug mode and continue running.
Interactive run: Directly execute interactive commands, such as print(i)
, i = 2
, etc.