When I try using AS_DEBUG on Win x64 version, it crashes on some my scripts.
I was found, that crash caused in as_bytecode.cpp in DebugOutput, on lines
asCScriptFunction *f = engine->scriptFunctions[instr->wArg[0]];
instr->wArg[0]
is short, and become negative on big functions number, and converting it to asUINT index created big number out of bound array. In my case function number was 0x81d8. Replacing line by
asCScriptFunction *f = engine->scriptFunctions[(unsigned short)instr->wArg[0]];
is solved problem.