Debug error when debugging OpenGL program remotely

view story

http://stackoverflow.com – I can use gdb to debug my OpenCL program on the server locally. But when I Debug it remotely. some errors come out in glutCreateWindow() function. And I can run my program remotely. Just can't debug . freeglut (/home/fshen/samuel/project_self/GLSL-learning/teapotshader/teapotshader): ERROR: Internal error <FBConfig with necessary capabilities not found> in function fgOpenWindow X Error of failed request: BadWindow (invalid Window parameter) Major opcode of failed request: 4 (X_DestroyWindow) Resource id in failed request: 0x0 (HowTos)