[Github-comments] [geany/geany-plugins] How to debug a multithread application [ Debugger / gdb ] (#1069)

avafinger notifications at github.com
Sun Apr 3 13:49:41 UTC 2022


Hi @nomadbyte , thank you, and nice you are working on this. 

> both threads share the same task-function

In a real-world scenery, the same function is called by many threads, hundreds, or thousands. Can you imagine a web server serving a connection with thousands of users connecting at the same time? Would be impossible to debug a single thread if the user should switch back the context manually in every step.

I am basing my assumptions comparing to what Visual studio does, once the breaking point is hit in a thread (first time), all others hit from other threads on the same function are ignored or halted and you can debug that specific thread (the first hit), step by step without worrying about the context switching to other thread. If I am not mistaken, Eclipse does the same but I am not an eclipse user, just mentioning it. 

Once you push your code I can test with a more complex sample. But I think the sample code should be as simple as possible.

Thank you and Cheers



-- 
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany-plugins/issues/1069#issuecomment-1086873172
You are receiving this because you are subscribed to this thread.

Message ID: <geany/geany-plugins/issues/1069/1086873172 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.geany.org/pipermail/github-comments/attachments/20220403/d881e8b0/attachment.htm>


More information about the Github-comments mailing list