2015-09-22 3 views
1

При отладке удаленных приложений Netbeans запоминает последние три и показывает последние в диалоговом окне Attach.Сохранение более длинного списка предыдущих сеансов отладки в Netbeans

Attach debugger Menu

Attach debugger Dialog

Мой вопрос, является ли кто-нибудь посмотрел в плагин или другое решение, в котором вы можете прикрепить к нескольким серверам одновременно (у нас есть куча серверов за балансировки нагрузки, без постоянной продолжительности сеанса, поэтому я не могу предопределить, на какой сервер попадет запрос) или способ сохранить более трех предыдущих серверов?

EDIT: Я обнаружил, что файл, содержащий настройки для последнего "прикрепляет" является %APPDATA%\NetBeans\8.0.2\config\Services\org-netbeans-modules-debugger-Settings.properties

На основе Netbeans FAQ article regarding userdir

исходные параметры:

debugger.last_attaches.used_slots:# array 
debugger.last_attaches.used_slots.0:# java.lang.Integer 
debugger.last_attaches.used_slots.0.primitiveWrapper:1 
debugger.last_attaches.used_slots.1:# java.lang.Integer 
debugger.last_attaches.used_slots.1.primitiveWrapper:3 
debugger.last_attaches.used_slots.2:# java.lang.Integer 
debugger.last_attaches.used_slots.2.primitiveWrapper:2 
debugger.last_attaches.used_slots.array_type:java.lang.Integer 
debugger.last_attaches.used_slots.length:3 

ответ

0

Я нашел исправить, изменив множество настроек в вышеупомянутом файле свойств: обратите внимание, что значения в первом разделе должны быть указаны т для увеличивающегося числа слотов, определенных ниже покажет

Последнее соединение:

debugger.last_attach_type:"Java Debugger (JPDA)" 
debugger.last_attaches.slot_0.attach_type:"Java Debugger (JPDA)" 
debugger.last_attaches.slot_0.display_name:"Attach to someserver0484.somedomain.local:8888" 
debugger.last_attaches.slot_0.values.attaching_connector:"com.sun.jdi.SocketAttach" 
debugger.last_attaches.slot_0.values.connection_settings:# java.util.HashMap 
debugger.last_attaches.slot_0.values.connection_settings.0-key:"com.sun.jdi.SocketAttach" 
debugger.last_attaches.slot_0.values.connection_settings.0-value:# java.util.HashMap 
debugger.last_attaches.slot_0.values.connection_settings.0-value.0-key:"port" 
debugger.last_attaches.slot_0.values.connection_settings.0-value.0-value:"8888" 
debugger.last_attaches.slot_0.values.connection_settings.0-value.1-key:"hostname" 
debugger.last_attaches.slot_0.values.connection_settings.0-value.1-value:"someservercs0484.somedomain.local" 
debugger.last_attaches.slot_0.values.connection_settings.0-value.2-key:"timeout" 
debugger.last_attaches.slot_0.values.connection_settings.0-value.2-value:"50000" 
debugger.last_attaches.slot_0.values.connection_settings.0-value.length:3 
debugger.last_attaches.slot_0.values.connection_settings.length:1 
debugger.last_attaches.slot_1.attach_type:"Java Debugger (JPDA)" 
debugger.last_attaches.slot_1.display_name:"Attach to someserver0137.somedomain.local:8888" 
debugger.last_attaches.slot_1.values.attaching_connector:"com.sun.jdi.SocketAttach" 
debugger.last_attaches.slot_1.values.connection_settings:# java.util.HashMap 
debugger.last_attaches.slot_1.values.connection_settings.0-key:"com.sun.jdi.SocketAttach" 
debugger.last_attaches.slot_1.values.connection_settings.0-value:# java.util.HashMap 
debugger.last_attaches.slot_1.values.connection_settings.0-value.0-key:"port" 
debugger.last_attaches.slot_1.values.connection_settings.0-value.0-value:"8888" 
debugger.last_attaches.slot_1.values.connection_settings.0-value.1-key:"hostname" 
debugger.last_attaches.slot_1.values.connection_settings.0-value.1-value:"someserver0137.somedomain.local" 
debugger.last_attaches.slot_1.values.connection_settings.0-value.2-key:"timeout" 
debugger.last_attaches.slot_1.values.connection_settings.0-value.2-value:"50000" 
debugger.last_attaches.slot_1.values.connection_settings.0-value.length:3 
debugger.last_attaches.slot_1.values.connection_settings.length:1 
debugger.last_attaches.slot_10.attach_type:"Java Debugger (JPDA)" 
debugger.last_attaches.slot_10.display_name:"Attach to someserver0136.somedomain.local:8888" 
debugger.last_attaches.slot_10.values.attaching_connector:"com.sun.jdi.SocketAttach" 
debugger.last_attaches.slot_10.values.connection_settings:# java.util.HashMap 
debugger.last_attaches.slot_10.values.connection_settings.0-key:"com.sun.jdi.SocketAttach" 
debugger.last_attaches.slot_10.values.connection_settings.0-value:# java.util.HashMap 
debugger.last_attaches.slot_10.values.connection_settings.0-value.0-key:"port" 
debugger.last_attaches.slot_10.values.connection_settings.0-value.0-value:"8888" 
debugger.last_attaches.slot_10.values.connection_settings.0-value.1-key:"hostname" 
debugger.last_attaches.slot_10.values.connection_settings.0-value.1-value:"someserver0136.somedomain.local" 
debugger.last_attaches.slot_10.values.connection_settings.0-value.2-key:"timeout" 
debugger.last_attaches.slot_10.values.connection_settings.0-value.2-value:"50000" 
debugger.last_attaches.slot_10.values.connection_settings.0-value.length:3 
debugger.last_attaches.slot_10.values.connection_settings.length:1 
debugger.last_attaches.slot_2.attach_type:"Java Debugger (JPDA)" 
debugger.last_attaches.slot_2.display_name:"Attach to someserver0135.somedomain.local:8888" 
debugger.last_attaches.slot_2.values.attaching_connector:"com.sun.jdi.SocketAttach" 
debugger.last_attaches.slot_2.values.connection_settings:# java.util.HashMap 
debugger.last_attaches.slot_2.values.connection_settings.0-key:"com.sun.jdi.SocketAttach" 
debugger.last_attaches.slot_2.values.connection_settings.0-value:# java.util.HashMap 
debugger.last_attaches.slot_2.values.connection_settings.0-value.0-key:"port" 
debugger.last_attaches.slot_2.values.connection_settings.0-value.0-value:"8888" 
debugger.last_attaches.slot_2.values.connection_settings.0-value.1-key:"hostname" 
debugger.last_attaches.slot_2.values.connection_settings.0-value.1-value:"someserver0135.somedomain.local" 
debugger.last_attaches.slot_2.values.connection_settings.0-value.2-key:"timeout" 
debugger.last_attaches.slot_2.values.connection_settings.0-value.2-value:"50000" 
debugger.last_attaches.slot_2.values.connection_settings.0-value.length:3 
debugger.last_attaches.slot_2.values.connection_settings.length:1 
debugger.last_attaches.slot_3.attach_type:"Java Debugger (JPDA)" 
debugger.last_attaches.slot_3.display_name:"Attach to someserver0136.somedomain.local:8888" 
debugger.last_attaches.slot_3.values.attaching_connector:"com.sun.jdi.SocketAttach" 
debugger.last_attaches.slot_3.values.connection_settings:# java.util.HashMap 
debugger.last_attaches.slot_3.values.connection_settings.0-key:"com.sun.jdi.SocketAttach" 
debugger.last_attaches.slot_3.values.connection_settings.0-value:# java.util.HashMap 
debugger.last_attaches.slot_3.values.connection_settings.0-value.0-key:"port" 
debugger.last_attaches.slot_3.values.connection_settings.0-value.0-value:"8888" 
debugger.last_attaches.slot_3.values.connection_settings.0-value.1-key:"hostname" 
debugger.last_attaches.slot_3.values.connection_settings.0-value.1-value:"someserver0136.somedomain.local" 
debugger.last_attaches.slot_3.values.connection_settings.0-value.2-key:"timeout" 
debugger.last_attaches.slot_3.values.connection_settings.0-value.2-value:"50000" 
debugger.last_attaches.slot_3.values.connection_settings.0-value.length:3 
debugger.last_attaches.slot_3.values.connection_settings.length:1 
debugger.last_attaches.slot_4.attach_type:"Java Debugger (JPDA)" 
debugger.last_attaches.slot_4.display_name:"Attach to someserver0137.somedomain.local:8888" 
debugger.last_attaches.slot_4.values.attaching_connector:"com.sun.jdi.SocketAttach" 
debugger.last_attaches.slot_4.values.connection_settings:# java.util.HashMap 
debugger.last_attaches.slot_4.values.connection_settings.0-key:"com.sun.jdi.SocketAttach" 
debugger.last_attaches.slot_4.values.connection_settings.0-value:# java.util.HashMap 
debugger.last_attaches.slot_4.values.connection_settings.0-value.0-key:"port" 
debugger.last_attaches.slot_4.values.connection_settings.0-value.0-value:"8888" 
debugger.last_attaches.slot_4.values.connection_settings.0-value.1-key:"hostname" 
debugger.last_attaches.slot_4.values.connection_settings.0-value.1-value:"someserver0137.somedomain.local" 
debugger.last_attaches.slot_4.values.connection_settings.0-value.2-key:"timeout" 
debugger.last_attaches.slot_4.values.connection_settings.0-value.2-value:"50000" 
debugger.last_attaches.slot_4.values.connection_settings.0-value.length:3 
debugger.last_attaches.slot_4.values.connection_settings.length:1 
debugger.last_attaches.slot_5.attach_type:"Java Debugger (JPDA)" 
debugger.last_attaches.slot_5.display_name:"Attach to someserver0136.somedomain.local:8888" 
debugger.last_attaches.slot_5.values.attaching_connector:"com.sun.jdi.SocketAttach" 
debugger.last_attaches.slot_5.values.connection_settings:# java.util.HashMap 
debugger.last_attaches.slot_5.values.connection_settings.0-key:"com.sun.jdi.SocketAttach" 
debugger.last_attaches.slot_5.values.connection_settings.0-value:# java.util.HashMap 
debugger.last_attaches.slot_5.values.connection_settings.0-value.0-key:"port" 
debugger.last_attaches.slot_5.values.connection_settings.0-value.0-value:"8888" 
debugger.last_attaches.slot_5.values.connection_settings.0-value.1-key:"hostname" 
debugger.last_attaches.slot_5.values.connection_settings.0-value.1-value:"someserver0136.somedomain.local" 
debugger.last_attaches.slot_5.values.connection_settings.0-value.2-key:"timeout" 
debugger.last_attaches.slot_5.values.connection_settings.0-value.2-value:"50000" 
debugger.last_attaches.slot_5.values.connection_settings.0-value.length:3 
debugger.last_attaches.slot_5.values.connection_settings.length:1 
debugger.last_attaches.slot_6.attach_type:"Java Debugger (JPDA)" 
debugger.last_attaches.slot_6.display_name:"Attach to someserver0136.somedomain.local:8888" 
debugger.last_attaches.slot_6.values.attaching_connector:"com.sun.jdi.SocketAttach" 
debugger.last_attaches.slot_6.values.connection_settings:# java.util.HashMap 
debugger.last_attaches.slot_6.values.connection_settings.0-key:"com.sun.jdi.SocketAttach" 
debugger.last_attaches.slot_6.values.connection_settings.0-value:# java.util.HashMap 
debugger.last_attaches.slot_6.values.connection_settings.0-value.0-key:"port" 
debugger.last_attaches.slot_6.values.connection_settings.0-value.0-value:"8888" 
debugger.last_attaches.slot_6.values.connection_settings.0-value.1-key:"hostname" 
debugger.last_attaches.slot_6.values.connection_settings.0-value.1-value:"someserver0136.somedomain.local" 
debugger.last_attaches.slot_6.values.connection_settings.0-value.2-key:"timeout" 
debugger.last_attaches.slot_6.values.connection_settings.0-value.2-value:"50000" 
debugger.last_attaches.slot_6.values.connection_settings.0-value.length:3 
debugger.last_attaches.slot_6.values.connection_settings.length:1 
debugger.last_attaches.slot_7.attach_type:"Java Debugger (JPDA)" 
debugger.last_attaches.slot_7.display_name:"Attach to someserver0136.somedomain.local:8888" 
debugger.last_attaches.slot_7.values.attaching_connector:"com.sun.jdi.SocketAttach" 
debugger.last_attaches.slot_7.values.connection_settings:# java.util.HashMap 
debugger.last_attaches.slot_7.values.connection_settings.0-key:"com.sun.jdi.SocketAttach" 
debugger.last_attaches.slot_7.values.connection_settings.0-value:# java.util.HashMap 
debugger.last_attaches.slot_7.values.connection_settings.0-value.0-key:"port" 
debugger.last_attaches.slot_7.values.connection_settings.0-value.0-value:"8888" 
debugger.last_attaches.slot_7.values.connection_settings.0-value.1-key:"hostname" 
debugger.last_attaches.slot_7.values.connection_settings.0-value.1-value:"someserver0136.somedomain.local" 
debugger.last_attaches.slot_7.values.connection_settings.0-value.2-key:"timeout" 
debugger.last_attaches.slot_7.values.connection_settings.0-value.2-value:"50000" 
debugger.last_attaches.slot_7.values.connection_settings.0-value.length:3 
debugger.last_attaches.slot_7.values.connection_settings.length:1 
debugger.last_attaches.slot_8.attach_type:"Java Debugger (JPDA)" 
debugger.last_attaches.slot_8.display_name:"Attach to someserver0136.somedomain.local:8888" 
debugger.last_attaches.slot_8.values.attaching_connector:"com.sun.jdi.SocketAttach" 
debugger.last_attaches.slot_8.values.connection_settings:# java.util.HashMap 
debugger.last_attaches.slot_8.values.connection_settings.0-key:"com.sun.jdi.SocketAttach" 
debugger.last_attaches.slot_8.values.connection_settings.0-value:# java.util.HashMap 
debugger.last_attaches.slot_8.values.connection_settings.0-value.0-key:"port" 
debugger.last_attaches.slot_8.values.connection_settings.0-value.0-value:"8888" 
debugger.last_attaches.slot_8.values.connection_settings.0-value.1-key:"hostname" 
debugger.last_attaches.slot_8.values.connection_settings.0-value.1-value:"someserver0136.somedomain.local" 
debugger.last_attaches.slot_8.values.connection_settings.0-value.2-key:"timeout" 
debugger.last_attaches.slot_8.values.connection_settings.0-value.2-value:"50000" 
debugger.last_attaches.slot_8.values.connection_settings.0-value.length:3 
debugger.last_attaches.slot_8.values.connection_settings.length:1 
debugger.last_attaches.slot_9.attach_type:"Java Debugger (JPDA)" 
debugger.last_attaches.slot_9.display_name:"Attach to someserver0136.somedomain.local:8888" 
debugger.last_attaches.slot_9.values.attaching_connector:"com.sun.jdi.SocketAttach" 
debugger.last_attaches.slot_9.values.connection_settings:# java.util.HashMap 
debugger.last_attaches.slot_9.values.connection_settings.0-key:"com.sun.jdi.SocketAttach" 
debugger.last_attaches.slot_9.values.connection_settings.0-value:# java.util.HashMap 
debugger.last_attaches.slot_9.values.connection_settings.0-value.0-key:"port" 
debugger.last_attaches.slot_9.values.connection_settings.0-value.0-value:"8888" 
debugger.last_attaches.slot_9.values.connection_settings.0-value.1-key:"hostname" 
debugger.last_attaches.slot_9.values.connection_settings.0-value.1-value:"someserver0136.somedomain.local" 
debugger.last_attaches.slot_9.values.connection_settings.0-value.2-key:"timeout" 
debugger.last_attaches.slot_9.values.connection_settings.0-value.2-value:"50000" 
debugger.last_attaches.slot_9.values.connection_settings.0-value.length:3 
debugger.last_attaches.slot_9.values.connection_settings.length:1 

Слоты:

debugger.last_attaches.used_slots:# array 
debugger.last_attaches.used_slots.0:# java.lang.Integer 
debugger.last_attaches.used_slots.0.primitiveWrapper:1 
debugger.last_attaches.used_slots.1:# java.lang.Integer 
debugger.last_attaches.used_slots.1.primitiveWrapper:2 
debugger.last_attaches.used_slots.2:# java.lang.Integer 
debugger.last_attaches.used_slots.2.primitiveWrapper:3 
debugger.last_attaches.used_slots.3:# java.lang.Integer 
debugger.last_attaches.used_slots.3.primitiveWrapper:4 
debugger.last_attaches.used_slots.4:# java.lang.Integer 
debugger.last_attaches.used_slots.4.primitiveWrapper:5 
debugger.last_attaches.used_slots.5:# java.lang.Integer 
debugger.last_attaches.used_slots.5.primitiveWrapper:6 
debugger.last_attaches.used_slots.6:# java.lang.Integer 
debugger.last_attaches.used_slots.6.primitiveWrapper:7 
debugger.last_attaches.used_slots.7:# java.lang.Integer 
debugger.last_attaches.used_slots.7.primitiveWrapper:8 
debugger.last_attaches.used_slots.8:# java.lang.Integer 
debugger.last_attaches.used_slots.8.primitiveWrapper:9 
debugger.last_attaches.used_slots.9:# java.lang.Integer 
debugger.last_attaches.used_slots.9.primitiveWrapper:10 
debugger.last_attaches.used_slots.array_type:java.lang.Integer 
debugger.last_attaches.used_slots.length:10 
debugger.last_attaching_connector:"com.sun.jdi.SocketAttach" 

Мой новый Attach Debugger меню Так что теперь я имеют еще много сохраненных слотов: My new Attach Debugger Menu

EDIT:

Оказывается, вы можете сохранить сеансы отладки, как это, но если вы создадите новое, список будет удален. работая над этим.

Смежные вопросы