Tip: To use the debugging features demonstrated in this video for Node.js, you will need to first install Node.js. We'll take a tour of the Run and Debug view, explore some debugging features, and end by setting a breakpoint. The protocol is used to communicate between the editor and debugger. IO.puts will crash if you give it something like a tuple. In this tutorial, we will show you how to run and debug a program in VS Code. Metals supports running and debugging tests and main methods via the Debug Adapter Protocol. iex(1)> IO.puts("example string") example string :ok iex(2)> IO.puts(:example_atom) example_atom :ok iex(3)> IO.puts(2) 2 :ok This includes integers, strings, and atoms. IO.puts is used for simple, readable values which implement the String.Chars protocol. You can print values using the IO.puts and IO.inspect functions. In this article, you’re going to learn how to leverage IO, IEX, and the built-in Visual Studio Code debugger to improve your debugging ability. Knowing how to debug your Phoenix or Elixir project properly is the difference between finding a bug in a few minutes or spending the next few painstaking hours reading thousands of lines of code looking for the one line that’s causing your app to crash, your boss to lose their hair (there’s a reason many developers are bald), and your users to abandon ship.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |