-
Notifications
You must be signed in to change notification settings - Fork 43
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Debugger] Issues #1298
Comments
Please check #1300 |
@zherczeg
What did you mean above? Running web-tooling-benchmark failed even without debugger? |
@zherczeg |
The debugger uses TCP/IP for communication, and the port can be set. However, the port is currently not passed: This should be easy to change. In the python debugger, the port can be set with In vscode extension, the port can be set in The summary is, that as long as each process creates a different tcp/ip port for communication, multiple processes can be debugged at the same time.
Unfortunately the debugger is not created with multi-threading in mind. It uses a single channel (tcp stream) for communication. If each thread uses a different socket, this should not cause any problem, since each context has an own debugger: However, if we would want to use a single socket for communication, that would be a challenging task. We should interleave the messages for different threads, and we need to know which thread is running, and which one is stopped. What do you think? How Escargot does support multithreading? Does each worker have its own escargot instance? |
@zherczeg Thanks for the quick reply! |
No problem. I think the key issue for multi process systems is finding / enumerating available socket ports. Each process should be able to automatically find a port where they can listen, and clients should be able to enumerate these ports to find which escargot they want to connect. There are many ways to do this, and we can discuss which one is preferred. |
Escargot (please complete the following information):
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.
A crash occurred as follow
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?
The text was updated successfully, but these errors were encountered: