Threads handling

Open
#19 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
28/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Domain
cli, devtools

Research direction

Start by tracing the command handling for threads, thread, and continue, along with the existing command documentation. Determine whether execution is scoped to the current thread or all threads, add the requested thread listing if appropriate, and update the documentation so the behavior and way to resume all threads are explicit.

Written by the indexing model from the issue text.

Description

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?

Dominant language
Haxe
Stars
49
Forks
16
PR merge metrics
No merged PRs in 30d

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from HaxeFoundation/hxcpp-debugger

All issues in HaxeFoundation/hxcpp-debugger

Similar issues

More CLI issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.