You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fnadd(x:i32,y:i32) -> i32{return x + y;}fnmain(){let x = 123;let y = 456;let result = add(x, y);let result = add(result, result);println!("result = {}", result);}
调试配置
选择 调试 -> 添加配置
会初始化配置文件
打断点
调试结果
The text was updated successfully, but these errors were encountered:
Rust开发
安装环境
开始调试
初始化调试项目
mkdir debug_rs cd debug_rs cargo init
编辑调试代码
在
./debug_rs/src/main.rs
文件上写入待调试代码调试配置
调试 -> 添加配置
The text was updated successfully, but these errors were encountered: