![](https://www.talkcrypto.org/blog/wp-content/uploads/2021/07/debug-1.jpg)
Binary numbers under magnifying glass
To debug a SubQuery project, the –inspect flag of the node command needs to be used.
![](https://www.talkcrypto.org/blog/wp-content/uploads/2021/09/image-1.png)
The command is:
node --inspect-brk <path to subql-node> -f <path to subQuery project>
Eg:
node --inspect-brk /usr/local/bin/subql-node -f ~/Code/subQuery/projects/subql-helloworld/
This enables the node inspector. Note the small difference between –inspect and –inspect-brk. Then open up the Developer Tools in Chrome and you should see a green icon appear.
![](https://www.talkcrypto.org/blog/wp-content/uploads/2021/09/image-2.png)
![](https://www.talkcrypto.org/blog/wp-content/uploads/2021/09/nodeinspect.gif)
Clicking on the green icon will open up the DevTools.
![](https://www.talkcrypto.org/blog/wp-content/uploads/2021/09/Screen-Shot-2021-09-16-at-5.48.09-pm-1024x740.png)
From here, navigate to the “Filesystem” and add your project folder to the workspace. Then you can add breakpoints and step through your code just like any regular debugger.
![](https://www.talkcrypto.org/blog/wp-content/uploads/2021/09/Screen-Shot-2021-09-16-at-7.06.45-pm-1024x600.png)