lapce源码学习-编译调试

master分支调试
1、报错:`#![feature]` may not be used on the stable release channel



2、Channel切换到nightly,报错:the trait bound `file_type::FileType: std::sealed::Sealed` is not satisfied

3、Channel切换到beta,编译ok,但提示不能调试

rustup install beta


4、编译成功后,指定运行内容:run --bin lapce,但调试中断


5、避免调试中断排查
入口文件:

main函数:

后台进程启动lapce,退出main,找到中断原因。


cli.wait如果true,就不会执行到这块,如果这个值怎么赋值的?取lapce启动的参数。


clap取启动的带参数

cargo run --bin启动程序的额外参数,与cargo参数如何区分开。
run --bin lapce -- --wait

调试状态不再中断

菜单功能打断点调试,ok。

posted @ 2023-09-30 22:51  攀攀  阅读(74)  评论(2编辑  收藏  举报