Need to test Javascript line by line on a Mac

Recently I've come across a javascript error on a client's site that occurs on the PC IE. I talked to some people and they said they could test for the error line by line in javascript in Microsoft Visual Studio. I'm wondering is there a program on the mac I can test javascript line by line?