Jump to content
  • Advertisement
Sign in to follow this  
virious

Multiple files debug

This topic is 2522 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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);

Share this post


Link to post
Share on other sites
Advertisement
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!