MCHSL / extools

Various extensions for the BYOND game engine.
MIT License
29 stars 41 forks source link

Send suspended stacks to debug client #46

Closed willox closed 3 years ago

willox commented 3 years ago

This'll let the debugger display all the currently sleeping procs when paused.

I think the extension will be able to expose this like other debuggers would have a list of threads? I don't know if anything else would need to be done on extools' part to facilitate it, but having a look at the responses generated in send_call_stacks I think the information could be useful.

For example I am able to spot procs such as /obj/machinery/door/airlock/proc/handlePowerRestore sleeping (quite a few actually), it's just kinda cool.

This changes the json format for stack traces, so don't merge it atm.

DamianX commented 3 years ago

This is cool and all but it made debugging an order of magnitude slower than it was before. Is it sending all the stack traces all the time? Each "step into" or "step over" takes 1.5 to 2 seconds now, it's unbearable.

SpaceManiac commented 3 years ago

Is it sending all the stack traces all the time?

Yes. Fixing this is on my to-do list.