Update README to include documentation on debug library.

This commit is contained in:
James Roseborough
2009-04-02 14:52:18 +00:00
parent 498805bfe5
commit 37b759485b
2 changed files with 78 additions and 55 deletions

View File

@@ -8,6 +8,8 @@ public class SampleJ2seMain {
String script = (args.length>0? args[0]: "src/test/res/swingapp.lua");
Platform.setInstance( new J2sePlatform() );
LuaState vm = Platform.newLuaState();
// uncomment to install the debug library
// org.luaj.lib.DebugLib.install(vm);
org.luaj.compiler.LuaC.install();
vm.getglobal( "dofile" );
vm.pushstring( script );