Debugging๐Ÿ› ๏ธThe Art of programmer ๐Ÿ˜Ž

Table of contents

No heading

No headings in the article.

Hi ๐Ÿ™. My name is Shravan. In this article, I๐Ÿ‘ฆ๐Ÿพ am going to share real experiences with debugging skills which helped me. I will be sharing good examples of how to debug any problem in life in this article. Using these skills for quite a long time. 2023 is my B.tech graduation year but started facing many errors from my first year of B.tech when I started executing codes.

In day-to-day life, everyone will face problems while executing codes it may be a runtime error, syntax error or another type of error. In the early stage of studying faced a lot of errors and I don't know where to check. I searched a lot on the internet to get my errors solved.

Later used Visual Studio code for debugging the errors. Here's the step-by-step process for using vs code as a debugger for any language I am using python for example

  1. Open the Visual Studio code which you can download for free.

2. Run the file which you wanted to debug.

3. Debug option is highlighted click on this option.

4. Add the breakpoints where you wanted to debug in the code. Break points are highlighted in the below picture

5. Now run the program using the F5 key or Run symbol present in debug menu.

6. After running the variables will be shown on left according to the break point we run.

7. Running another breakpoint and checking its working can be done using the options menu popped.

8. You can also stop using the stop symbol present in the pop-up menu.

9. On the debug menu you can see how the code is working i.e Local and global variables are displayed.

I just explained how to debug a code. It may be a code or a different problem in life just think for yourself for 1 to 2 minutes if it gets done go with the flow else search for it on the internet.

In conclusion to this article, debugging is the art of the programmer where one can solve the problem differently for others. We have completed how to debug using VS code for any language. So try more ways and stick to one or two which works for you. Not the one other follow. Be yourself.

Thankyou for visting my article. If you find my article informative please like and give a comment what did you feel about my article or write about your debugging skills. Excited to know your debugging skills ๐Ÿ˜Š๐Ÿง˜๐Ÿพโ€โ™‚๏ธ.

ย