I’m on windows, and JS debugging is not working using chrome.
I debug a “index.html” file with a js script with only one line “var one = 1”. I have a breakpoint on that line, but komodo does not stop on that line.
When I debug, komodo opens 2 chrome browsers :
file:///C:/program%20files%20(x86)/google/chrome/application/73.0.3683.86/
file:///D:/htdocs/project/index.html
And I see this in komodo :
INFO:chrome.dbgp.main:Debugging ‘file://D:\htdocs\project\index.html’ over localhost:61553 on Chrome 127.0.0.1:9222
INFO:chrome.dbgp.DBGPClient:Connection to IDE established.
INFO:chrome.dbgp.ChromeClient:Connection to Chrome established.
INFO:chrome.dbgp.DBGPClient:Debugging started.
Then, if I refresh the “index.html” page in chrome :
ERROR:chrome.dbgp.DBGPClient:Exception occurred in ‘run’
Traceback (most recent call last):
File “C:\Program Files (x86)\ActiveState Komodo IDE 11\lib\support\dbgp\chromelib\dbgp.py”, line 463, in processCommands
getattr(self, handler)(argv, data)
File “C:\Program Files (x86)\ActiveState Komodo IDE 11\lib\support\dbgp\chromelib\dbgp.py”, line 831, in onRun
self._wait()
File “C:\Program Files (x86)\ActiveState Komodo IDE 11\lib\support\dbgp\chromelib\dbgp.py”, line 786, in _wait
if not self.chrome.processMessages(True):
File “C:\Program Files (x86)\ActiveState Komodo IDE 11\lib\support\dbgp\chromelib\dbgp.py”, line 169, in processMessages
listener.callback(data, listener)
File “C:\Program Files (x86)\ActiveState Komodo IDE 11\lib\support\dbgp\chromelib\dbgp.py”, line 628, in onScriptParsed
lambda response : (
File “C:\Program Files (x86)\ActiveState Komodo IDE 11\lib\support\dbgp\chromelib\dbgp.py”, line 219, in send
self.processMessages() # retrieve response
File “C:\Program Files (x86)\ActiveState Komodo IDE 11\lib\support\dbgp\chromelib\dbgp.py”, line 188, in processMessages
command.callback(command)
File “C:\Program Files (x86)\ActiveState Komodo IDE 11\lib\support\dbgp\chromelib\dbgp.py”, line 630, in
‘chrome_id’: response.data[‘breakpointId’].value,
TypeError: ‘NoneType’ object has no attribute ‘getitem’
Does js debugging using chrome supposed to work on windows ?