Step through source code lines. @param stepDepth the step depth (StepRequest#STEP_OVER, StepRequest#STEP_INTO or StepRequest#STEP_OUT)
(int stepDepth)
| 276 | * {@link StepRequest#STEP_INTO} or {@link StepRequest#STEP_OUT}) |
| 277 | */ |
| 278 | protected void step(int stepDepth) { |
| 279 | if (!isStarted()) { |
| 280 | startDebug(); |
| 281 | } else if (isPaused()) { |
| 282 | editor.variableInspector().lock(); |
| 283 | editor.activateStep(); |
| 284 | |
| 285 | // use global to mark that there is a step request pending |
| 286 | requestedStep = runtime.vm().eventRequestManager().createStepRequest(currentThread, StepRequest.STEP_LINE, stepDepth); |
| 287 | requestedStep.addCountFilter(1); // valid for one step only |
| 288 | requestedStep.enable(); |
| 289 | paused = false; |
| 290 | runtime.vm().resume(); |
| 291 | editor.statusBusy(); |
| 292 | } |
| 293 | } |
| 294 | |
| 295 | |
| 296 | /** Step over current statement. */ |
no test coverage detected