better trycatch, more debugging
This commit is contained in:
parent
a05ace0cec
commit
d57404bf02
1 changed files with 8 additions and 2 deletions
|
@ -13,7 +13,7 @@ import java.util.concurrent.atomic.AtomicInteger;
|
|||
*/
|
||||
|
||||
public class ISBPL {
|
||||
private static boolean debug = false;
|
||||
static boolean debug = false;
|
||||
public ISBPLDebugger.IPC debuggerIPC = new ISBPLDebugger.IPC();
|
||||
ArrayList<ISBPLType> types = new ArrayList<>();
|
||||
Stack<HashMap<String, ISBPLCallable>> functionStack = new Stack<>();
|
||||
|
@ -97,8 +97,8 @@ public class ISBPL {
|
|||
block.call(file);
|
||||
} catch (ISBPLError error) {
|
||||
if (Arrays.asList(allowed).contains(error.type) || allowed.length != 1 && allowed[0].equals("all")) {
|
||||
stack.push(toISBPLString(error.type));
|
||||
stack.push(toISBPLString(error.message));
|
||||
stack.push(toISBPLString(error.type));
|
||||
catcher.call(file);
|
||||
}
|
||||
else {
|
||||
|
@ -1293,6 +1293,12 @@ class ISBPLDebugger extends Thread {
|
|||
}
|
||||
}
|
||||
break;
|
||||
case "son":
|
||||
ISBPL.debug = true;
|
||||
break;
|
||||
case "soff":
|
||||
ISBPL.debug = false;
|
||||
break;
|
||||
case "exit":
|
||||
System.exit(255);
|
||||
break;
|
||||
|
|
Loading…
Add table
Reference in a new issue