如题,逐行、随时检测变量值。请问有好方法吗?
光阴似箭催人老,日月如移越少年。
Vim is just a text editor. It is too difficult for you to use it as an IDE. To debug Python line by line, you can just use pdb.
Print it yourself, or please choose IDE...
In this case, you can only write more console.log();
You can use pdb, but it may be better to use ipdb
You can refer to:
http://caimaoy.com/caimaoy_gi...
It is probably not possible to debug the program, but some error messages can be printed during compilation. For example, when compiling java, you can see error messages in the console. That's all.
Vim is just a text editor. It is too difficult for you to use it as an IDE. To debug Python line by line, you can just use pdb.
Print it yourself, or please choose IDE...
In this case, you can only write more console.log();
You can use pdb, but it may be better to use ipdb
You can refer to:
http://caimaoy.com/caimaoy_gi...
It is probably not possible to debug the program, but some error messages can be printed during compilation. For example, when compiling java, you can see error messages in the console. That's all.