Debugging
This will be super short.
You should make yourself familiar with the debugger of your choice. Some come with or are built into integrated development environments, some are standalone programs.
GDB Documentation GDB Cheat Sheet Valgrind
Those tools help you to find out whether your code works as intended or produces the right values. Get used to using it, before asking for help anywhere else. A lot of places/forums/discord servers also assume that you tried helping yourself first.
This should cover the pure code side, unrelated to OpenGL
or any other graphics API.
It also helps to take a look at the OpenGL Specification. It will show you what is valid and what isnt valid to call. Which formats and parameters etc are possible. Make sure to bookmark this document. Same applies to the GLSL Specification. It contains everything related to GLSL, parameters, attributes, identifiers and keywords. This should also go into your bookmarks.
In the next chapter I will show you how you can ask OpenGL
to be nice to you.