Skip site navigation (1)Skip section navigation (2)

FreeBSD Manual Pages

  
 
  

home | help
system_snapshot(3)		  Arcan Lua API 	      system_snapshot(3)

NAME
     system_snapshot - Create a debugging snapshot or open live access to attach
     a debugger

SYNOPSIS
     nil
     system_snapshot( string:outres )
     system_snapshot( string:outres, bool:debug=false )

DESCRIPTION
     This creates a snapshot of the lua scenegraph and stores as a lua script in
     the  APPLTEMP    namespace  as outres  or, if debug  is set the engine will
     pause and wait for a debugger to attach to outres .

NOTES
     1	    the format used is the same as used for crash reports and serializa-
	    tion in monitoring mode.

EXAMPLE
     function system_snapshot0()
	   a = fill_surface(32, 32, 255, 255, 0);
	   move_image(a, 100, 100);
	   zap_resource("testdump.lua");
	   system_snapshot("testdump.lua");
	   tbl = system_load("testdump.lua")();
     end

system				   August 2026		      system_snapshot(3)

Want to link to this manual page? Use this URL:
<https://man.freebsd.org/cgi/man.cgi?query=system_snapshot&sektion=3&manpath=FreeBSD+Ports+15.1.quarterly>

home | help