2

How do I remote debug vespa in standalone mode? Especially the custom components like Searchers, Processors?

aman.gupta
  • 53
  • 1
  • 5

1 Answers1

4

Please take a look at the container documentation for remote debugging with IntelliJ IDEA. First, set up a remote debugging configuration in IDEA as shown in this SO post. Then, add the jvm arguments to the container/nodes element in your services.xml:

   <container id='default' version='1.0'>
      <search/>
      <document-api/>
      <nodes jvmargs='-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=5005 -Dvespa.freezedetector.disable=1'>
          <node hostalias='node1'/>
      </nodes>
   </container>

Just make sure the port numbers in IDEA and services.xml match.

gjoranv
  • 4,376
  • 3
  • 21
  • 37