Theia: failed to update thread frames during python debugging

Created on 3 Mar 2020  路  10Comments  路  Source: eclipse-theia/theia

Description

When debugging python file, Call Stack will show the message of Load More Stack Frames.
it will show thread frames only after clicking this message.
image

Reproduction Steps


1 download vscode python plugin
2 start theia
3 create a simple python file and add a breakpoint
4 debug this python file and click Step Over

OS and Theia version:
OS: centos 7
Theia: 6d0abe589df60fcbce48710d6a637b01ae73bf72
Diagnostics:
a regression caused by https://github.com/eclipse-theia/theia/commit/d1678ad8068d9a9bf9ed8b90d2a67f01c116e850

bug critical debug vscode

All 10 comments

I think we should put https://github.com/eclipse-theia/theia/commit/d1678ad8068d9a9bf9ed8b90d2a67f01c116e850#diff-bb75a296f1f7fdc09c2d755ef791d61cR229 in the branch of if (thread.stoppedDetails && thread.stoppedDetails.allThreadsStopped) accoring to it's commit message.

@marcdumais-work @marechal-p Could you have a look please? It seems to be caused by the recently merged PR or revert it I would prefer to step back and make a minimal change which does not break it.

Reproduced on master. Will now confirm if same happens or not before https://github.com/eclipse-theia/theia/commit/d1678ad8068d9a9bf9ed8b90d2a67f01c116e850

Will now confirm if same happens or not before d1678ad

Confirmed - testing one commit before https://github.com/eclipse-theia/theia/commit/d1678ad8068d9a9bf9ed8b90d2a67f01c116e850, the call stack frames are displayed after stepping, without having to click on "load more stack frames".

I will talk with @marechal-p before reverting, but this looks like we will likely proceed doing this later today.

@marcdumais-work Can we have a PR to revert https://github.com/eclipse-theia/theia/commit/d1678ad8068d9a9bf9ed8b90d2a67f01c116e850 please? It breaks products which use next version. A proper PR can be reintroduced later. Let me know if you don't have time I will revert it. btw was it a part of last release? We need a bug fix release probably then as well.

Can we have a PR to revert d1678ad please?

Yes, we'll either have a fix or revert that commit today.

btw was it a part of last release?

Indeed it was.

We need a bug fix release probably then as well.

+1

From my investigation, it seems that for some reason, the DebugStackFramesSource.getElements function is not called on stop, when replicating the situation mentioned by this issue.

https://github.com/eclipse-theia/theia/blob/357b8e9d4413bc5c566a7d4b751bb381b8fe5db8/packages/debug/src/browser/view/debug-stack-frames-source.tsx#L44

I wasn't able to make sense of what doesn't happen/what would need to happen to fix that, and I need to focus on other tasks for now.

I wasn't able to make sense of what doesn't happen/what would need to happen to fix that, and I need to focus on other tasks for now.

Thanks for the investigation @marechal-p - We'll revert the PR for now and do a bugfix release.

The original PR is reverted - we'll make sure this issue here is no longer present if we bring it back.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Beetix picture Beetix  路  3Comments

jeanlucburot picture jeanlucburot  路  3Comments

pwFoo picture pwFoo  路  3Comments

fangnx picture fangnx  路  3Comments

dhananjayharel picture dhananjayharel  路  3Comments