Skip to content

[Debugger] Issues #1298

Description

@clover2123

Escargot (please complete the following information):

  • OS: Ubuntu 22.04
  • Revision : 1982e20 (latest version)

Describe the bug

1. Get crashed when running a large-scale code [Fixed]

Debugger get crashed when running for a large-scaled source code.
To reproduce the error, run web-tooling-benchmark source as below.

./escargot --start-debug-server test/web-tooling-benchmark/dist/cli.js  # start debugger server for web-tooling-benchmark
./tools/debugger/debugger.py  # run debugger tool

A crash occurred as follow

Connecting to: localhost:6501
Connection created!!!
Traceback (most recent call last):
  File "/usr/lib/python3.8/encodings/utf_16_le.py", line 16, in decode
    return codecs.utf_16_le_decode(input, errors, True)
TypeError: don't know how to handle UnicodeDecodeError in error callback

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "./debugger.py", line 293, in <module>
    main()
  File "./debugger.py", line 279, in main
    result = debugger.process_messages()
  File "/escargot/tools/debugger/debugger_core.py", line 398, in process_messages
    result = self._parse_source(data)
  File "/escargot/tools/debugger/debugger_core.py", line 865, in _parse_source
    source += self.decode16(data[1:])
  File "/escargot/tools/debugger/debugger_core.py", line 369, in decode16
    return string.decode("UTF-16LE" if self.little_endian else "UTF-16BE", "namereplace")
TypeError: decoding with 'UTF-16LE' codec failed (TypeError: don't know how to handle UnicodeDecodeError in error callback)

2. Debugger for multiple processes/threads

For cases when multiple processes or threads are running (e.g. WebWorker)
Could debugger and vscode-extension still support these cases?
If not, what should we do more to provide debugging for multiple of Escargot instances?

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions