title: How to debug through a karate testing project using Maven?
body: <p>Is there a way I can debug through the test in a similar way that I would debug a Java app using Maven?
  For example, if I set breakpoint in the implementstion of step and click on debug with next parameters of CL:
  <code>mvn clean test -Dkarate.options="--tags ~@ignore" -Dtest=MainRunner -DforkCount=0</code></p>
  
  <p>and I'm getting next errors:</p>
  
  <pre><code>[INFO] --- maven-surefire-plugin:2.22.2:test (default-test) @ karateSberApi ---
  [WARNING] useSystemClassloader setting has no effect when not forking
  [INFO] Running examples.MainRunner
  before all
  get credentialsMap by cmd
  19:27:39.169 [main] INFO  com.intuit.karate.RunnerOptions - found system property 'karate.options': --tags ~@ignore
  after all
  [ERROR] Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.875 s &lt;&lt;&lt; FAILURE! - in examples.MainRunner
  [ERROR] testAll  Time elapsed: 0.872 s  &lt;&lt;&lt; ERROR!
  java.lang.NoClassDefFoundError: jdk/nashorn/api/scripting/ScriptObjectMirror
  Caused by: java.lang.ClassNotFoundException: jdk.nashorn.api.scripting.ScriptObjectMirror
  </code></pre>
  
  <p>I tried to run next and it's working:</p>
  
  <pre><code>public static void main(String[] args) throws ScriptException {
          ScriptEngine engine = new ScriptEngineManager().getEngineByName("nashorn");
          engine.eval("print('Hello World!');");
      }
  </code></pre>
  
  <p>What's wrong?
  env:</p>
  
  <pre><code>Intellij Idea 2019.3
  Bundled (Maven 3) version 3.6.1
  
  java version "1.8.0_201"
  Java(TM) SE Runtime Environment (build 1.8.0_201-b09)
  Java HotSpot(TM) 64-Bit Server VM (build 25.201-b09, mixed mode)
  </code></pre>
  
  <p>thanks for your answers!</p>