Skip to content
This repository has been archived by the owner on Nov 10, 2017. It is now read-only.

Allow to attach to multithreaded processes #56

Merged
merged 1 commit into from
Jul 20, 2017
Merged

Allow to attach to multithreaded processes #56

merged 1 commit into from
Jul 20, 2017

Conversation

dueckminor
Copy link

@dueckminor dueckminor commented Jul 20, 2017

As you wrote in your README.md
Debugging of Multie Threaded apps is possible but very flaky. The debugger could at times hang.

I'm pretty sure that I found the reason for this and I also was able to fix it.

Especially in multi threaded processes it happens often that no thread is
selected. In this case you will get the following prompt:
'>'
But in jdb.ts, a prompt like this is expected:
'main[1]'

This fix, checks also for '> ', which makes it possible to attach to
multithreaded processes.

Especially in multi threaded processes it happens often that no thread is
selected. In this case you will get the following prompt:
>
But in jdb.ts, a prompt like this is expected:
main[1]

This fix, checks also for '> ', which makes it possible to attach to
multithreaded processes.
@faustinoaq
Copy link
Contributor

Let me test this PR before merge.

Thanks you! 😄

@dueckminor
Copy link
Author

Good idea.

@faustinoaq faustinoaq merged commit ae25fc7 into DonJayamanne:master Jul 20, 2017
@faustinoaq
Copy link
Contributor

faustinoaq commented Jul 20, 2017

This PR works as expected

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants