惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

S
SegmentFault 最新的问题
Jina AI
Jina AI
罗磊的独立博客
V
Visual Studio Blog
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
J
Java Code Geeks
U
Unit 42
Microsoft Azure Blog
Microsoft Azure Blog
B
Blog RSS Feed
爱范儿
爱范儿
酷 壳 – CoolShell
酷 壳 – CoolShell
Last Week in AI
Last Week in AI
T
The Blog of Author Tim Ferriss
腾讯CDC
Hugging Face - Blog
Hugging Face - Blog
T
Tailwind CSS Blog
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
I
InfoQ
月光博客
月光博客
博客园_首页
Vercel News
Vercel News
P
Proofpoint News Feed
GbyAI
GbyAI
Y
Y Combinator Blog

The Rust Programming Language Forum - Latest topics

Beginner building a Rust backend framework (AI-assisted) — feedback appreciated C++ to Rust -- Exceptions Re-exporting a trait with a custom derive_macro Gold linker is deprecated Why is using PhantomData valid in this case? Code review for Static Pool Allocator Looking for a pool based allocator Why is this legal? What does it mean for Rustc to run "out of TLS keys"? Using async/await internally with no internal runtime, but exposing a nonblocking poll API — is this a reasonable design? Testing functions that use randomness `cargo-path`: improve coding agents&#39; ability to find Rust documentation Rust task runners Lifetime weird case Windows - USB device not detected A random rustc-ice-[...].txt file appeared Develop rust where the environment is setup in a docker Undefined Behavior: in-bounds pointer arithmetic failed: attempting to offset pointer by 20 bytes, but got alloc238 which is only 1 byte from the end of the allocation Unbug 0.5 - Runtime debug assertions Is there a tiny error in section 6.2 Reference types? Lifetime woes implementing ratatui::Widget for a reference Rusqlite + Chrono: How do I simplify code to obtain chrono datetime value From OOP to Rust – struggling with code organization and data structure design Way to avoid a self-referential struct Rust RF and audio resources/communities Whyhttp - HTTP mocks that fail where the bug actually is Using tokio channel permits in a tower service Arc::increment_strong_count design question (cross-post) `&T`, `&mut T`, `Pin<&mut T>` and `&Cell<T>`: Ways of Borrowing a `T` Ratatui detect arrow key press and release
Debugger not showing/offering variables?
duaneellissd · 2026-04-22 · via The Rust Programming Language Forum - Latest topics
Hard to tell if this is a DEBUGGER problem? I am using JetBrains RUST ROVER. Or is this a COMPILER problem? Not generating a debug record for the variable. Or is it due to a test case problem? ie: neither of the above. The code in question (a snippit) reads as follows its part of a MUCH larger set of unit test things, my goal is to step through the unit test with the debugger {rustrover} if (code & 2) != 0 { n = get_string(2, true); v = get_string(2, false); result = result - n.len() - v.len() - 2; let mut actual = dut.space_remain(); if actual != result { println!("fail -CODE: {}", code ); dump_env( dut ); dut.bb2.hexdump(128); assert!(false); } } The if( actual != result ) was originally a simple inline assert - that failed. To figure out what is going on, I want to step through it in the debugger. In the debugger, I can not easily see the result "dut.space_remain()' - duh... This has happened before, the solution is to assign it to a variable. One of two things happen -(A) it works and shows up or (B) it does not show up If that simple assignment does not produce a debugger variable, then if I change the variable to a MUT variable - it shows up [sometimes] in the debugger. Well as you might guess, it still does not show up. Having done compiler things in my past life, I would think there is a micro optimization going on between that assignment that drops the variable in debug/test mode. As you can guess this is not a simple thing to reduce to a smaller reproducible problem :-(. So suggestions would be helpful. 2 posts - 2 participants Read full topic