Converting to js lib debug object