nitlanguage
/
nit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
src: cleanup importations
[nit.git]
/
src
/
debugger.nit
diff --git
a/src/debugger.nit
b/src/debugger.nit
index
75486cb
..
0f211e6
100644
(file)
--- a/
src/debugger.nit
+++ b/
src/debugger.nit
@@
-23,6
+23,7
@@
import nitx
intrude import local_var_init
intrude import scope
intrude import toolcontext
intrude import local_var_init
intrude import scope
intrude import toolcontext
+private import parser_util
redef class Model
# Cleans the model to remove a module and what it defines when semantic analysis fails on injected code
redef class Model
# Cleans the model to remove a module and what it defines when semantic analysis fails on injected code
@@
-335,7
+336,8
@@
class Debugger
if initprop != null then
self.send(initprop, [mobj])
end
if initprop != null then
self.send(initprop, [mobj])
end
- var mainprop = mmod.try_get_primitive_method("main", sys_type.mclass)
+ var mainprop = mmod.try_get_primitive_method("run", sys_type.mclass) or else
+ mmod.try_get_primitive_method("main", sys_type.mclass)
if mainprop != null then
self.rt_send(mainprop, [mobj])
end
if mainprop != null then
self.rt_send(mainprop, [mobj])
end