robertbasic / pugdebug

pugdebug is a standalone debugging client for PHP applications that uses XDebug as the debugging engine.
http://pugdebug.com/
Other
73 stars 15 forks source link

idekey crashes app #216

Open jrvmedic opened 4 years ago

jrvmedic commented 4 years ago
$ python3.8 ./app.py 
Traceback (most recent call last):
  File "/home/usr/pugdebug/pugdebug/server.py", line 43, in run
    self.__listen(socket_server)
  File "/home/usr/pugdebug/pugdebug/server.py", line 91, in __listen
    is_valid = connection.init_connection()
  File "/home/usr/pugdebug/pugdebug/server.py", line 185, in init_connection
    if idekey != '' and init_message['idekey'] != idekey:
KeyError: 'idekey'
Aborted (core dumped)

Proposed fix: change line #185 of server.py from if idekey != '' and init_message['idekey'] != idekey: to if (idekey != '') and ('idekey' in init_message) and (init_message['idekey'] != idekey):

I have just started to use pugdebug. If you allow me to have access, i will make updates directly, or send you patch file(s), or attach changed files to reported issues. My email is "jrvmedic2@gmail.com" What other information do you require?