Removal of manThread: breakFlag can do its job just fine
git-svn-id: svn://10.0.0.236/trunk@156676 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
8b94e067ca
commit
02c5145a8e
@ -2335,8 +2335,6 @@ public class Main extends JFrame implements Debugger, ContextListener {
|
||||
|
||||
ObjToIntMap contexts = new ObjToIntMap();
|
||||
|
||||
static Thread mainThread; // thread used to run the shell
|
||||
|
||||
public void contextCreated(Context cx) {
|
||||
|
||||
synchronized (contexts) {
|
||||
@ -2348,7 +2346,7 @@ public class Main extends JFrame implements Debugger, ContextListener {
|
||||
// Main then set the break flag so that when the debugger is run
|
||||
// with a file argument on the command line it will
|
||||
// break at the start of the file
|
||||
if (breakFlag || Thread.currentThread() == mainThread) {
|
||||
if (breakFlag) {
|
||||
contextData.breakNextLine = true;
|
||||
}
|
||||
}
|
||||
@ -3527,8 +3525,8 @@ public class Main extends JFrame implements Debugger, ContextListener {
|
||||
|
||||
public static void main(String[] args) {
|
||||
try {
|
||||
mainThread = Thread.currentThread();
|
||||
final Main sdb = new Main("Rhino JavaScript Debugger");
|
||||
sdb.breakFlag = true;
|
||||
swingInvoke(new Runnable() {
|
||||
public void run() {
|
||||
sdb.pack();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user