vscode icon indicating copy to clipboard operation
vscode copied to clipboard

Load more stack frames shown on all threads

Open faxue-msft opened this issue 10 years ago • 11 comments

  • VSCode Version: 1.1
  • OS Version: Windows 10, Ubuntu 14.04

Steps to Reproduce:

  1. Create a multithread application and start debugging
  2. Enter break mode, For thread 1: debugger return 20 stack frames and total count of 100. For thread 2: debugger return 3 stack frames and total count of 3.
  3. Verify the "Load More Stack Frames" frame is shown for thread1, Verify there is only 3 frames for thread 2
  4. Click the "Load More Stack Frames" frame in thread 1

Problem: Both thread 1 and thread 2 now shows the "Load More Stack Frames" frame, even though thread 2 only has 3 stack frames.

faxue-msft avatar May 11 '16 22:05 faxue-msft

1 2

faxue-msft avatar May 11 '16 22:05 faxue-msft

@faxue-msft The version fo the C++ extension that I have does not support totalFrames thus I can not get this behavior. How can I get the newest C++ extension for which I can reproduce this? I will first verify that the adapter returns a proper totalFrames field per each thread.

isidorn avatar May 16 '16 13:05 isidorn

It's not in any of the existing C++ Extension, I was working on supporting more than 20 frames and discovered this bug. I can share with you some private bits if you don't have any other debugger support this already.

faxue-msft avatar May 16 '16 17:05 faxue-msft

Only node debug so far supports this, but it is not multi threaded. If sharing private bits is complicated I can do some hacking on the vscode side to fake this behavior.

Did you verify on your side that the totalFrames returned by your adapter are correct for each thread respectively?

isidorn avatar May 16 '16 17:05 isidorn

Setting this to June as we are wrapping up the May milestone and did not have a chance to investigate, let me know if you guys need it before and I will put back to May

isidorn avatar May 19 '16 14:05 isidorn

Since this is a bit hard to reproduce and not a huge issue I propose to fix this once the C++ extension starts supporting totalFrames attribute. Then I can investigate on my machine why this is happening.

isidorn avatar Jun 22 '16 10:06 isidorn

The latest C++ extension already supports totalFrames attribute.

faxue-msft avatar Jun 22 '16 16:06 faxue-msft

I can repro this with some other debug adapter too.

edumunoz avatar Jun 23 '16 00:06 edumunoz

@edumunoz @faxue-msft could you please verify that this works now in the insiders? Thanks.

weinand avatar Jul 04 '16 14:07 weinand

I verified in C++ debugger extension that that this bug is fixed today's insider build. Thanks!

faxue-msft avatar Jul 05 '16 20:07 faxue-msft

@faxue-msft thanks a lot for verifying.

weinand avatar Jul 05 '16 20:07 weinand