Slackbot
11/27/2023, 9:31 AMLari Hotari
11/27/2023, 11:31 AMOPTS="-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=*:5005" ./bin/pulsar standalone -nss -nfw
You can then attach the debugger from IDE on port 5005. Change "suspend=y" if you want that the process waits for the debugger to connect.
IDE setup instructions are at https://pulsar.apache.org/contribute/setup-ide/
You can debug the source version of Pulsar in a similar way after compiling.
git clone <https://github.com/apache/pulsar>
cd pulsar
mvn -Pcore-modules,-main -T 1C install -DskipTests -Dspotbugs.skip=true
OPTS="-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=*:5005" ./bin/pulsar standalone -nss -nfw
To reset the persistent state, you can remove data/* before starting. rm -rf data/*Lari Hotari
11/27/2023, 11:38 AMUmut Bilal Okur
11/27/2023, 7:27 PMUmut Bilal Okur
11/28/2023, 1:33 PMLari Hotari
11/28/2023, 2:02 PMLari Hotari
11/28/2023, 2:03 PMUmut Bilal Okur
11/28/2023, 4:08 PMUmut Bilal Okur
11/28/2023, 4:09 PMLari Hotari
11/28/2023, 4:10 PMpulsar-shellLari Hotari
11/28/2023, 4:10 PMLari Hotari
11/28/2023, 4:11 PMOPTS="-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=*:5005" ./bin/pulsar-shellLari Hotari
11/28/2023, 4:12 PMUmut Bilal Okur
11/28/2023, 4:19 PMUmut Bilal Okur
11/28/2023, 4:20 PMUmut Bilal Okur
11/28/2023, 4:20 PMLari Hotari
11/28/2023, 4:28 PMUmut Bilal Okur
11/28/2023, 4:29 PMUmut Bilal Okur
12/11/2023, 6:55 PMLari Hotari
12/11/2023, 7:03 PMUmut Bilal Okur
12/11/2023, 7:25 PM