How do I remote debug vespa in standalone mode? Especially the custom components like Searchers, Processors?
Asked
Active
Viewed 176 times
1 Answers
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