File tree 1 file changed +9
-3
lines changed
1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change 16
16
17
17
JRUBY_DIR = File . expand_path ( '../..' , __FILE__ )
18
18
19
+ JDEBUG_PORT = 51819
20
+ JDEBUG = "-J-agentlib:jdwp=transport=dt_socket,server=y,address=#{ JDEBUG_PORT } ,suspend=y"
21
+
19
22
# wait for sub-processes to handle the interrupt
20
23
trap ( :INT ) { }
21
24
@@ -226,7 +229,7 @@ def run(*args)
226
229
end
227
230
228
231
if args . delete ( '--jdebug' )
229
- jruby_args += %w[ -J-agentlib:jdwp=transport=dt_socket,server=y,address=51819,suspend=y ]
232
+ jruby_args << JDEBUG
230
233
end
231
234
232
235
if args . delete ( '--server' )
@@ -301,12 +304,15 @@ def test_specs(*args)
301
304
options += %w[ --excl-tag slow ]
302
305
end
303
306
304
- if args . first == '--graal'
305
- args . shift
307
+ if args . delete ( '--graal' )
306
308
env_vars [ "JAVACMD" ] = Utilities . find_graal
307
309
options << '-T-J-server'
308
310
end
309
311
312
+ if args . delete ( '--jdebug' )
313
+ options << "-T#{ JDEBUG } "
314
+ end
315
+
310
316
mspec_env env_vars , 'run' , *options , *args
311
317
end
312
318
private :test_specs
You can’t perform that action at this time.
0 commit comments