How to know why exactly GLAD failed.(ERROR DESCRIPTION)

Please consider i am newbie in cpp world.i have this code:

```cpp
   if(! gladLoadGLLoader((GLADloadproc)glfwGetProcAddress)){
       std::cout << "Failed to load GLAD." << std::endl;
       glfwTerminate();
       return -1;
    }

```

here whenever i did something wrong i get console log which i specified but is there  a way to know what exactly happened why error occurs? because when program exists it just logs my message then i get this message in IDE

```Process finished with exit code 139 (interrupted by signal 11:SIGSEGV)```