logoalt Hacker News

Bewelgetoday at 11:35 AM1 replyview on HN

> Development with HTML/CSS/JavaScript and WebGL is my favorite stack to work with.

I love this myself, but..

> have great debug information

How do you debug WebGL stuff? I find that to be one of the least debuggable things I've ever done with computers. If there's multiple shaders feeding into one another, the best I can usually come up with is drawing the intermediate results to screen and debugging visually. Haven't been paying too much attention to the space the past 2-3 years though, so I'm wondering if some new tools emerged that make this easier.


Replies

gifmantoday at 4:17 PM

The JavaScript debugging is great right out of The Browser these days.

WebGL debugging... it's a combination of how you're doing it, visually, especially for shader-related issues. For API calls, logging gets most things figured out, there is also this: https://github.com/KhronosGroup/WebGLDeveloperTools