IssueRaiser

Very long delay when a breakpoint is hit and many (150+) threads are created by the program

### Environment - OS and version: Ubuntu 20.04.5 LTS - VS Code: 1.72.1 - C/C++ extension: v1.12.4 - OS and version of remote machine (if applicable): gdbserver is running on an embedded ARMv7 Linux - GDB version: 7.4 ### Bug Summary and Steps to Reproduce Bug Summary: I am developing a C application with 150+ threads and debug it remotely via gdbserver. When the first breakpoint is hit, vscode requests detailed information about every thread in the application and it takes about 3 minutes to complete. The debugging is very painful due to this. The communication between gdb and gdbserver is very sensitive to the network latency. It is important to make as few requests to gdb/gdbserver as possible. Steps to reproduce: Create an app which starts 150+ threads. Debug it remotely using gdbserver. Set a breakpoint to be hit after all threads are created already. Debug the program. When the breakpoint is hit you will get a significant delay before vscode UI reports the breakpoint hit. ### Debugger Configurations ```shell { // Use IntelliSense to learn about possible attributes. // Hover to view descriptions of existing attributes. // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 "version": "0.2.0", "configurations": [ { "name": "(gdb) Debug app", "type": "cppdbg", "request": "launch", "program": "link.out", "stopAtEntry": false, "cwd": "${workspaceRo

Posted by jusid on Oct 12, 2022, 3:09 PM

Tags

Related issues

Raise real-world problems, find people facing the same issue, and discuss solutions.2,500 issues0 comments

ux (SaaS)

Very long delay when a breakpoint is hit and many (150+) threads are created by the program

jusidOct 12, 2022, 3:09 PM

### Environment - OS and version: Ubuntu 20.04.5 LTS - VS Code: 1.72.1 - C/C++ extension: v1.12.4 - OS and version of remote machine (if applicable): gdbserver is running on an embedded ARMv7 Linux - GDB version: 7.4 ### Bug Summary and Steps to Reproduce Bug Summary: I am developing a C application with 150+ threads and debug it remotely via gdbserver. When the first breakpoint is hit, vscode requests detailed information about every thread in the application and it takes about 3 minutes to complete. The debugging is very painful due to this. The communication between gdb and gdbserver is very sensitive to the network latency. It is important to make as few requests to gdb/gdbserver as possible. Steps to reproduce: Create an app which starts 150+ threads. Debug it remotely using gdbserver. Set a breakpoint to be hit after all threads are created already. Debug the program. When the breakpoint is hit you will get a significant delay before vscode UI reports the breakpoint hit. ### Debugger Configurations ```shell { // Use IntelliSense to learn about possible attributes. // Hover to view descriptions of existing attributes. // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 "version": "0.2.0", "configurations": [ { "name": "(gdb) Debug app", "type": "cppdbg", "request": "launch", "program": "link.out", "stopAtEntry": false, "cwd": "${workspaceRo

Comments (0)

No comments yet. Start the discussion.

Comment on this issue