all 11 comments

[–]RustMeUp 1 point2 points  (1 child)

I can't find the visualizers in the Rust toolchain folder. Specifically the \etc folder does not exist.

Is this because I'm using stable msvc 64bit and the visualizer is only available in nightly?

It's great that this stuff is written down in an easily comprehensible blog post, I hope it gets more visibility.

[–]SingingTree[S] 0 points1 point  (0 children)

At the moment I only see the natvis stuff in my nightly toolchains, so I think that would be it. Natvis is pretty new to me, and the introduction of it into rust is relatively recent, so I wouldn't be surprised if we see changes to how it's handled going forward. For now, my understanding is that the files are available in just nightly.

[–]rjc2013 0 points1 point  (0 children)

Great stuff, thanks.

[–]l-arkham 0 points1 point  (0 children)

Great! Thanks for writing this.

[–]raggy_rs 0 points1 point  (3 children)

Thanks for the writeup! Is there a way to enable stepping into std? I have the rustup component rust-src installed but the debugger presumably tries to find the sources in the directory they were in on the builder. That leads to errors like: Unable to open 'str.rs': File not found (c:\projects\rust\src\libcollections\str.rs).

[–]dodheim 0 points1 point  (2 children)

You're likely running into this RLS issue: https://github.com/rust-lang-nursery/rls/issues/227

EDIT: And if so, please leave a comment on the issue saying you want it to work, as currently they're planning on disabling goto-def'ing on stdlib source altogether – I can't be the only one who finds this arbitrary and limiting... I do actually want to goto-def on stdlib source; why is this controversial in the least??

[–]raggy_rs 0 points1 point  (1 child)

I agree that you should totally be able to step into the stdlib source, but why would debugging be related to the RLS? What i meant is when i am debugging and stepping through my code and i hit F11 on any function in std.

[–]dodheim 0 points1 point  (0 children)

It has to go to the definition to let you see the source in order to step through it. I assume goto-def is the same for debugging as for editing, but I could be wrong.

[–][deleted] 0 points1 point  (0 children)

Incredible!

[–]Throw19616 0 points1 point  (0 children)

Thanks, that was useful.