Multiple files debug

Started by
0 comments, last by WitchLord 12 years, 3 months ago
I found this line in the Debugger addon (in method bool CDebugger::CheckBreakPoint(asIScriptContext *ctx)):

// TODO: do case-less comparison for file name

How can I check in the line callback in which script file I'm currently in. In my editor I can have many scripts open on tabs and I wan't to be able to check if any of those breakpoints that are set, were hit. Is it possible with the current version of AS or is there any workaround for this?

Thanks in advance!

EDIT:
I think I have a solution for this case. I'm loading each file into the script section with the adequate name.
For example: file Unit_OnUpdate.as goes to the script section called "Unit_OnUpdate". Then in my line callback function
I can check in which script section I am currently in using:

int line = ctx->GetLineNumber(0, 0, &scriptSection);
Advertisement
Exactly! :)

AngelCode.com - game development and more - Reference DB - game developer references
AngelScript - free scripting library - BMFont - free bitmap font generator - Tower - free puzzle game

This topic is closed to new replies.

Advertisement