Skip to content
This repository was archived by the owner on Aug 28, 2020. It is now read-only.

Commit 115f5e6

Browse files
committed
reuse existing method for setting debugger features when a new connection is initiated
1 parent 8598fab commit 115f5e6

File tree

1 file changed

+1
-20
lines changed

1 file changed

+1
-20
lines changed

pugdebug/server.py

Lines changed: 1 addition & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -150,26 +150,7 @@ def init_connection(self):
150150
if idekey != '' and init_message['idekey'] != idekey:
151151
return False
152152

153-
max_depth = int(get_setting('debugger/max_depth'))
154-
command = 'feature_set -i %d -n max_depth -v %d' % (
155-
self.__get_transaction_id(),
156-
max_depth
157-
)
158-
response = self.__send_command(command)
159-
160-
max_children = int(get_setting('debugger/max_children'))
161-
command = 'feature_set -i %d -n max_children -v %d' % (
162-
self.__get_transaction_id(),
163-
max_children
164-
)
165-
response = self.__send_command(command)
166-
167-
max_data = int(get_setting('debugger/max_data'))
168-
command = 'feature_set -i %d -n max_data -v %d' % (
169-
self.__get_transaction_id(),
170-
max_data
171-
)
172-
response = self.__send_command(command)
153+
self.__set_debugger_features()
173154

174155
self.init_message = init_message
175156

0 commit comments

Comments
 (0)