4 ms·
Can I easily use and debug Rust on Windows, Mac, Linux, iOS, Android, Playstation, and Xbox? Then it's not a viable option.
by forrestthewoods 11y ago
Can I easily use and debug Rust on Windows, Mac, Linux, iOS, Android, Playstation, and Xbox? Then it's not a viable option.
- tomjakubowski 11y ago> Can I easily use and debug Rust on Windows, Mac, Linux, iOS, Android Yes. > Playstation With a little effort, probably; the toolchains both use LLVM, and writing a custom target for Rust is possible. Someone managed to do it back in the dark times when Rust still depended on libuv [1]. I think that was before the "flexible target specification" [2] was a thing, too. Whether Sony would allow you to distribute a game written in Rust is another question ;-) > Xbox Nope. [1]: https://twitter.com/wickerwaka/status/479842553831776257 https://twitter.com/wickerwaka/status/479842553831776257 [2]: https://github.com/rust-lang/rfcs/blob/master/text/0131-target-specification.md https://github.com/rust-lang/rfcs/blob/master/text/0131-targ...
- pjmlp 11y ago> Can I easily use and debug Rust on Windows, Mac, Linux, iOS, Android > Yes. Easily means using something like Visual Studio debuggers, with its graphical visualizers. Command line gdb is something I use when there isn't any other option available.
- dkersten 11y agoAs someone who used to write a ton of C++ and only occasionally fired up gdb (and never anything fancier), I feel like maybe "easily" means different things to different people. Going by what was said above and how I developed in C++, it sounds like "easily" to me.
- pjmlp 11y agoYeah, I always been an IDE guy since Turbo Pascal 5.5 and only reluctantly used vi and Emacs as poor man's IDE replacement.
- steveklabnik 11y agoI haven't used it yet, but https://github.com/pistondevelopers/visualrust https://github.com/pistondevelopers/visualrust claims to have started MIEngine integration.
- pjmlp 11y agoThanks for the heads up.
- forrestthewoods 11y agoEasy means: * breakpoint debugging * ability to step debugger line by line * high quality watch window GDB does not qualify as easy. Ability to printf debug, while 100% mandatory, is also not easy.
- pcwalton 11y agoRust debugging works beautifully with Xcode. I would assume it works with Linux graphical debugging tools as well. Visual Studio support is mostly gated on LLVM support for PDB. We do have support for using the MSVC toolchain as of a couple of releases ago, so I'm not actually sure what if anything is left to get that working.
- pjmlp 11y agoThanks for the update, I thought it was worse than that given my experience on Windows. Also many thanks for the MSVC toolchain, that is what I have been using.
- Nang1975 11y agoAny examples or tutorials? Last time I tried this (which wasn't very long ago), I would only occasionally be able to step across Rust code and Xcode would often crash on me.
- pcwalton 11y agoI just use Xcode's debugger on Rust code. If you see issues, please file bugs against Rust; I'd like Xcode to work.