Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Script CallStack, line and column #297

Draft
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

Gussak
Copy link

@Gussak Gussak commented Dec 25, 2023

Script CallStack, line and column
logs will show more details for mod developers:

  • Warnings, Showlocals and showvars will show GoSub call stack.
  • Showlocals and showvars will also show event and params
  • The script call stack now shows position, line and collumn from where each call was made
    Obs.: the column may not match your text editor as each tab on it may count as more than one column

It now looks like ex.:

[I] ScriptedInterface:257 Local variables for hologram_0004 at Event on main at GoSub callStack functestcallstack1[p=30508,l=644,c=25] -> functestcallstack2[p=30175,l=626,c=25] -> functestcallstack3[p=30238,l=630,c=25] -> functestcallstack4[p=30301,l=634,c=25], [Position 30348, Line 638, Column 9]:

To test it:

>>FUNCtestCallStack1 {
	GoSub FUNCtestCallStack2
	RETURN
}
>>FUNCtestCallStack2 {
	GoSub FUNCtestCallStack3
	RETURN
}
>>FUNCtestCallStack3 {
	GoSub FUNCtestCallStack4
	RETURN
}
>>FUNCtestCallStack4 {
	showvars //showlocals
	RETURN
}
On Main {
	GoSub FUNCtestCallStack1
	ACCEPT
}
Obs.: about my other PR... branches Obs.: I have many other PR_... branches, some are WIP but most are ready. If someone likes any of them, feel free to merge it in your own branch, test, improve etc. and create a pull request here instead of me :). There are also many usage examples and tests on the Hologram.asl script at my ArxLaetansMod (but it depends on my fully merged dev branch).

Edit: there is only GoSub callstack...

Terminal log will show line and column where the problem happened.
Terminal log will show line and column where the problem happened.
Terminal log will show line and column where the problem happened.
logs will show more details for mod developers:
- Warnings, Showlocals and showvars will show GoTo/GoSub call stack.
- Showlocals and showvars will also show event and params
- The script call stack now shows position, line and collumn from where each call was made
Obs.: the column may not match your text editor as each tab on it may count as more than one column
@Gussak Gussak marked this pull request as draft January 6, 2024 04:07
Shows most details possible about the script.
logs will show more details for mod developers:
- Warnings, Showlocals and showvars will show GoTo/GoSub call stack.
- Showlocals and showvars will also show event and params
- The script call stack now shows position, line and collumn from where each call was made
Obs.: the column may not match your text editor as each tab on it may count as more than one column
@dscharrer dscharrer force-pushed the master branch 5 times, most recently from 391b7f7 to 3d8a7e6 Compare May 30, 2024 12:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant