[英]Debugging in Visual Studio Code without breakpoints, checking the function calls stack
I am trying to dive in a really big codebase. 我正在尝试使用一个非常大的代码库。 I am using Visual Studio Code.
我正在使用Visual Studio Code。 I always used debugger with setting the breakpoints, but this time I just would like to become familiar with a new codebase and see where is the code responsible for particular program commands execution.
我一直使用调试器来设置断点,但是这次我只是想熟悉一个新的代码库,并查看负责特定程序命令执行的代码在哪里。 Is there an option to run debugger step by step without setting breakpoints in VSC?
是否可以选择在VSC中不设置断点的情况下逐步运行调试器? Or where can I find eg what functions where called during my program execution?
或者在哪里可以找到例如在程序执行期间调用了哪些函数? In Call Stack section I see only the threads number.
在“调用堆栈”部分,我仅看到线程号。
I see a command 我看到一个命令
editor.debug.action.runToCursor
if you don't want to set breakpoints. 如果您不想设置断点。 It has no default binding so you will have to make your own.
它没有默认绑定,因此您必须自己制作。 I tested it and it works.
我对其进行了测试,并且可以正常工作。 When your code stops - at your cursor - you should see the call stack (assuming the call stack panel is not hidden).
当代码停止时-在光标处-您应该看到调用堆栈(假定“调用堆栈”面板未隐藏)。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.