debugger statement not working in dynamically created