Package com.intuit.karate.debug
Class DebugThread
- java.lang.Object
-
- com.intuit.karate.debug.DebugThread
-
- All Implemented Interfaces:
LogAppender,RuntimeHook
public class DebugThread extends Object implements RuntimeHook, LogAppender
- Author:
- pthomas3
-
-
Constructor Summary
Constructors Constructor Description DebugThread(Thread thread, DapServerHandler handler)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected DebugThread_continue()voidafterScenario(ScenarioRuntime context)voidafterStep(StepResult result, ScenarioRuntime context)voidappend(String text)booleanbeforeScenario(ScenarioRuntime context)booleanbeforeStep(Step step, ScenarioRuntime context)voidclose()Stringcollect()LogAppendergetAppender()StringgetBuffer()protected booleanisStepMode()protected DebugThreadnext()protected voidpause()protected voidresume()voidsetAppender(LogAppender appender)protected DebugThreadstepBack()protected DebugThreadstepIn()protected DebugThreadstepOut()StringtoString()-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface com.intuit.karate.RuntimeHook
afterFeature, afterHttpCall, afterSuite, beforeFeature, beforeHttpCall, beforeSuite
-
-
-
-
Field Detail
-
id
public final long id
-
name
public final String name
-
thread
public final Thread thread
-
handler
public final DapServerHandler handler
-
-
Constructor Detail
-
DebugThread
public DebugThread(Thread thread, DapServerHandler handler)
-
-
Method Detail
-
pause
protected void pause()
-
resume
protected void resume()
-
beforeScenario
public boolean beforeScenario(ScenarioRuntime context)
- Specified by:
beforeScenarioin interfaceRuntimeHook
-
afterScenario
public void afterScenario(ScenarioRuntime context)
- Specified by:
afterScenarioin interfaceRuntimeHook
-
beforeStep
public boolean beforeStep(Step step, ScenarioRuntime context)
- Specified by:
beforeStepin interfaceRuntimeHook
-
afterStep
public void afterStep(StepResult result, ScenarioRuntime context)
- Specified by:
afterStepin interfaceRuntimeHook
-
_continue
protected DebugThread _continue()
-
next
protected DebugThread next()
-
stepOut
protected DebugThread stepOut()
-
isStepMode
protected boolean isStepMode()
-
stepIn
protected DebugThread stepIn()
-
stepBack
protected DebugThread stepBack()
-
getAppender
public LogAppender getAppender()
-
setAppender
public void setAppender(LogAppender appender)
-
getBuffer
public String getBuffer()
- Specified by:
getBufferin interfaceLogAppender
-
collect
public String collect()
- Specified by:
collectin interfaceLogAppender
-
append
public void append(String text)
- Specified by:
appendin interfaceLogAppender
-
close
public void close()
- Specified by:
closein interfaceLogAppender
-
-