Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clicking a stack frame with no source causes its line number to disappear #9243

Closed
andrewcrawley opened this issue Jul 13, 2016 · 0 comments
Closed
Assignees
Labels
debug Debug viewlet, configurations, breakpoints, adapter issues
Milestone

Comments

@andrewcrawley
Copy link

  • VSCode Version: 1.3.1
  • OS Version: Ubuntu 16.04 (x64)

Steps to Reproduce:

  1. Install the C++ Tools extension ("ext install cpptools")
  2. Save the following as "main.cpp":
#include <iostream>
#include <pthread.h>

void * thread_proc(void* ctx)
{
    std::cout << "Hello from new thread!" << std::endl;
}

int main (int argc, char **argv) {
    pthread_t thread;

    std::cout << "Hello from main thread!" << std::endl;

    pthread_create(&thread, NULL, &thread_proc, NULL);    
    pthread_join(thread, NULL);

    std::cout << "So long!" << std::endl;

    return 1;
}
  1. Compile (g++ -o test main.cpp -lpthread)
  2. Set a breakpoint on line 6.
  3. Run

When the breakpoint is hit, the Call Stack for the active thread will contain the line numbers for all stack frames:

before

After clicking on a frame that lacks source, however, the line number disappears:

after

Possibly related to the fix for #4608? I'd expect that if the debug adapter can provide the correct line numbers, they shouldn't be hidden just because the source file is unavailable.

@weinand weinand added the debug Debug viewlet, configurations, breakpoints, adapter issues label Jul 13, 2016
@weinand weinand assigned weinand and isidorn and unassigned weinand Jul 13, 2016
@isidorn isidorn added this to the July 2016 milestone Jul 19, 2016
@vscodebot vscodebot bot locked and limited conversation to collaborators Nov 18, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
debug Debug viewlet, configurations, breakpoints, adapter issues
Projects
None yet
Development

No branches or pull requests

3 participants