sys_marker

Posted By: Error014

sys_marker - 03/26/15 21:17

This might be more of a feature request than a "Blame the manual". But anyways, sys_marker's entry in the manual states:

Quote:

The marker is also displayed in script error messages, allowing to find the precise location of the error


Which is a great feature for debugging!
Unfortunately, it isn't triggered anytime. In "Engine error messages", its implied to only appear for "Error E1513: Script crash in..." and "Error E1516: Invalid memory area".
Other errors, such as "Error E1515: Invalid arguments" do *NOT* show the marker. So this should be corrected in the manual. Or, better yet...

If there's no good reason against this, would it be possibly to display the sys_marker-content in every error message?

Here's a quick test for you, if you need it. Runs with no assets.
Uncomment the first line to get a "Script crash" (shows sys_marker), uncomment the second for an "Invalid argument" error (does not show sys_marker):

Code:
void main() {
	ENTITY* notinuse=NULL;

	sys_marker("TST");

	//notinuse.skill1 = 1; //Gives a "Script Crash".
	//c_move(notinuse,vector(1,0,0),nullvector,0); //Gives an "Invalid argument"
}

Posted By: alibaba

Re: sys_marker - 03/28/15 02:49

Have you set warn_level >=2 ?
Posted By: Error014

Re: sys_marker - 03/28/15 22:35

Makes no difference. sys_marker is only shown for the "Script Crash"-error, regardless of warn_level.
Posted By: alibaba

Re: sys_marker - 03/28/15 22:38

Oh, you´re right! Nevermind.
Posted By: jcl

Re: sys_marker - 03/30/15 17:02

This makes sense. We'll include the sys_marker in any error message in a future version, not only in crash messages.
© 2024 lite-C Forums