I get this error when working with opengl and clang on win32.
Sounds like your code is dereferencing NULL pointer. Or some other code you call (like GL functions).
What is on call stack?
Are you sure you have created GL context & loaded function pointers before using any GL functions?
Have you enabled debug layer callback and checking for any GL errors?
That sounds like the working directory is simply different from what you expect. Usually you don't use full paths. Typically you launch debugger from folder you want, or explicitly set in properties/settings of launching process - so all relative paths are from specified folder.
I use vs code and launch it using a debug.bat file from the working directory.
@echo off
remedybg build\game.exe %^
And just make a json-task to run debug.bat when I hit f5.
Vs code is a terrible editor tho so I'm on the lookout for replacements. VIM and Emacs are not working well on my pc for some reason. Never got 4coder to work properly either.