Where I Share What I Learn. Basically my Notebook :)

Category: Debug

So this was the question I asked on Stackoverflow , I hate to ask there but I was struggling to figure it out so I asked. But good I asked as I immediately got a response on what is wrong with my code. I also hate the guy who downvoted my question, but yeah that’s how SO works

Go to integrated terminal of vscode and type tsc . This would create a new folder out and will put the transpiled code here, they are just javascript files and map files (used for debugging typescript)

To run the transpiled code , type node .\out\main.js . It should print HelloWorld

Rust is the next super cool language I have seen after C# . Flame war… 😀 just kidding. But seriously the whole idea of Rust has just blown my mind and I just wanted to learn it.

But coming from C# + Visual Studio background. I am so spoil on using these massive super cool tool and excellent debugging experience. So selecting any language I also tend to see what tools are available.

Rust community is still not as big as .Net, mainly because its so new language. So I did not find ONE great tool which will serve purpose. But I am sure things will change. There are things coming up, you can read more here

Ok so back to the original purpose of this post. Rust with Visual Studio Code.

Save it and go back to VS Code and again press F5. You should see cleaner inspect output like this

That’s all. Not a very easy process but still good enough to start learning rust.

Now why I choose the nightly build mainly because with the version at the time of the post was 1.11 which had a small problem in debugging rust macros. To read about it more you can check my question in Rust user group here

Please let me know if this does not work or you find some problem so that I can help you if I could and also update the blog post. Also I have read various blog post and stack overflow post to get understanding about all this so thanks to all of them, its difficult to post all the link here as most of them I forgot 🙂