How to run samples with debugger enabled?

I’m working on windows with vs2012;
I tried to set JSB_ENABLE_DEBUGGER to 1 to enabled debugger, but it prompted lots of error messages.
I must missed something, how is the debugger supposed to work?
Any suggestion is appreciated.
Thanks