[Runtimemicro] has the answer, at least if you are writing PWM code for the Arduino. Their free application lets you set a few parameters, visually see the results, and then generates code for you.
The Arduino IDE support was announced on the ESP8266 ... There are a few things that aren’t written yet; PWM doesn’t work, as the ESP8266 only has one hardware PWM source.