[英]Debugging in VS Code without breakpoints
I'm trying to use the Visual Studio Code debugger to run a Go application to try and understand the code base.我正在尝试使用Visual Studio Code 调试器运行 Go 应用程序来尝试理解代码库。
I have to manually set breakpoints to pause execution but doing this may result in missing some part of the code.我必须手动设置断点来暂停执行,但这样做可能会导致丢失部分代码。
So I was wondering if there is a way to pause after every line without having to manually set breakpoints .所以我想知道是否有一种方法可以在每一行之后暂停而无需手动设置断点。 Any help?
有什么帮助吗?
If you are using gdb you can use 's' to step line by line.如果您使用的是 gdb,您可以使用 's' 逐行执行。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.