How to Install and Configure the Console ninja Vscode Extension
Tags: javascript, react, webdev, beginners
Published: 2023-03-11 08:51:36

## Introduction

`Console.log` is an effective way to comprehend your JavaScript code, and one of the most frequently used methods to see the output it gives is through the browser's developer tools.

But, do you know? `console.log` can be much easier to use and you can now debug with `console.log` like a ninja.

Ever seen anything like this? 👀

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1672767828782/41421005-43b5-4c16-b00f-1ead89d7e7d6.png)

Where you get your message right next to the `console.log` method? We were able to achieve this thanks to a Vs code extension called **Console Ninja**.

Now, in the following sections, I will be showing how to Install and configure the **Console Ninja** VsCode Extension.

## How To Set It Up

To set up console ninja, navigate to the extensions tab:

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1672770904730/2e947f2b-0a2b-4d4c-be36-293f60b9aaed.png)

Next, search for console ninja and click on the result with Wallaby.js as the author:

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1672774268139/127a98a6-9fdd-4795-9644-158193b98e5e.png)

Click the install button to install the extension:

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1672774981782/b3eeda71-faef-46b9-9d19-fc3e07f70fd5.png)

## Settings

Now that we are done with installing the console ninja extension, if you use extensions like **live server** there are some settings to do for the proper functioning of the **console ninja** extension but if you don't use live server, you can go straight to the section where we test **console ninja** out.

Navigate to the settings tab at the bottom left corner of your vs code:

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1672833757244/fa936f17-5d5c-48e0-bc3e-f63c6cb9bcfc.png)

Afterwards, click the next settings button:

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1673032064765/4b97e0e1-5614-4989-8667-0f7d8621bc03.png)

In the next step, search for console ninja:

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1673088730930/2ef9d579-6c08-4772-bf6f-f5ec1e964ce4.png)

Scroll down to the bottom and tick these two boxes:

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1673089820088/06e816ff-16fe-4623-b843-1fdddf602958.png)

## Test it Out

In this section of this article, we are going to be testing out **console ninja** to see if we have successfully installed and configured it correctly.

But before we test it out, we have to be sure to start **console ninja.** At the bottom of your Vscode editor, you're going to see a ninja section with an icon of pause.

Click on that to be provided a dropdown of a few actions you can select from:

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1673090062094/7daa40de-9d7c-4b7e-90bc-4709ec0322d0.png)

To start the **console ninja** extension, select *start console ninja:*

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1673058507834/a8753c42-8b58-465b-b51a-d5ba2eb657b9.png)

Now, the final step is for those that use the live server extension. At the bottom of your Vs code editor, click the **Go live** section to go live.

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1673058841988/57640146-722c-42f1-b9b5-73dde9b9c357.png)

Console ninja is now ready for use,, below is a gif of me testing out console ninja, please watch closely.

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1673062196357/41e093d6-d92d-417f-8fd2-907990331d8f.gif)

There, it is working perfectly🎉, but I want us to note something, before console ninja will work as it should there have to be an interaction of your code with the browser.

For example, Take a look at the gif above of me testing out console ninja, notice I had to click a "click me" button on the browser before I could get my console message right next to its method.

If I had something like this:

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1673136812461/a0fe463f-6ca7-45c2-8fc0-18ec54ca8791.png)

A console.log method standing alone and which will get to have no interaction with the browser, my console message will not show.

## Conclusion

In this article, I have discussed the console ninja Vscode extension, how to install and configure it, and we have tested it out.

Did you find this article useful?

* Follow me for more posts like this so we don't lose sight of each other.💯
    
* Leave a lot of reactions to show your support.🥳
    
* Share it to spread the knowledge.🤗