HaxeFoundation / hxcpp-debugger

Cross-platform debugger for hxcpp
Apache License 2.0
49 stars 16 forks source link

Threads handling #19

Open Simn opened 7 years ago

Simn commented 7 years ago

Two things:

  1. Is there a way to get a list of all currently running threads? This should probably be a threads command.

  2. It's a bit confusing to understand what continue does in a threaded environment. From the continue documentation:

The continue (or c) command continues threads until the next breakpoint occurs.

From the thread documentation:

The thread command switches the debugger to thread <number>, making this thread the current thread. The current thread is the thread which is targeted by the following commands: continue, step, next, finish, where, up, down, frame, print, set

The question is: Does continue continue execution of all threads or just the current thread? If it's the latter, how do we get back to an "execute all threads" state?

bjitivo commented 7 years ago

The continue command continues all threads.

It would certainly be a little less ambiguous to add the word 'all' in there, so that the help read:

"The continue (or c) command continues all threads until the next breakpoint occurs."

bjitivo commented 7 years ago

You can use 'where all' to list the callstacks of all threads, which is a way also of seeing how many threads there are. There is no command list to list how many threads there are.

bjitivo commented 7 years ago

The new github works horribly with my browser and I can't edit the previous command. I should have said "There is no command JUST to list how many threads there are."

bjitivo commented 7 years ago

Ha ha I should have written "I can't edit the previous COMMENT."