File tree Expand file tree Collapse file tree 2 files changed +10
-10
lines changed Expand file tree Collapse file tree 2 files changed +10
-10
lines changed Original file line number Diff line number Diff line change @@ -33,9 +33,9 @@ sys.inherits(DebuggerPlugin, Plugin);
33
33
this . CHROME_DEBUG_PORT = 9222 ;
34
34
35
35
this . command = function ( user , message , client ) {
36
- if ( ! ( / j s / . test ( message . runner ) ) )
37
- return false ;
38
-
36
+ if ( ! ( / j s / . test ( message . runner ) ) )
37
+ return false ;
38
+
39
39
var _self = this ;
40
40
41
41
var cmd = ( message . command || "" ) . toLowerCase ( ) ,
Original file line number Diff line number Diff line change @@ -10,13 +10,13 @@ var Path = require("path"),
10
10
sys = require ( "sys" ) ,
11
11
netutil = require ( "cloud9/netutil" ) ;
12
12
13
- var DebuggerPlugin = module . exports = function ( ide ) {
13
+ var PythonRuntimePlugin = module . exports = function ( ide ) {
14
14
this . ide = ide ;
15
15
this . hooks = [ "command" ] ;
16
16
this . name = "debugger" ;
17
17
} ;
18
18
19
- sys . inherits ( DebuggerPlugin , Plugin ) ;
19
+ sys . inherits ( PythonRuntimePlugin , Plugin ) ;
20
20
21
21
( function ( ) {
22
22
this . init = function ( ) {
@@ -29,15 +29,15 @@ sys.inherits(DebuggerPlugin, Plugin);
29
29
this . PYTHON_DEBUG_PORT = 7984 ;
30
30
31
31
this . command = function ( user , message , client ) {
32
- if ( ! ( / p y / . test ( message . runner ) ) )
33
- return false ;
34
-
32
+ if ( ! ( / p y / . test ( message . runner ) ) )
33
+ return false ;
34
+
35
35
var _self = this ;
36
36
37
37
var cmd = ( message . command || "" ) . toLowerCase ( ) ,
38
38
res = true ;
39
39
switch ( cmd ) {
40
- case "run" : case "rundebug" : // We don't debug python just yet.
40
+ case "run" : case "rundebug" : case "rundebugbrk" : // We don't debug python just yet.
41
41
this . $run ( message , client ) ;
42
42
break ;
43
43
case "kill" :
@@ -134,4 +134,4 @@ sys.inherits(DebuggerPlugin, Plugin);
134
134
callback ( ) ;
135
135
} ;
136
136
137
- } ) . call ( DebuggerPlugin . prototype ) ;
137
+ } ) . call ( PythonRuntimePlugin . prototype ) ;
You can’t perform that action at this time.
0 commit comments