You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Install the C++ Tools extension ("ext install cpptools")
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;
}
Compile (g++ -o test main.cpp -lpthread)
Set a breakpoint on line 6.
Run
When the breakpoint is hit, the Call Stack for the active thread will contain the line numbers for all stack frames:
After clicking on a frame that lacks source, however, the line number disappears:
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.
The text was updated successfully, but these errors were encountered:
Steps to Reproduce:
When the breakpoint is hit, the Call Stack for the active thread will contain the line numbers for all stack frames:
After clicking on a frame that lacks source, however, the line number disappears:
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.
The text was updated successfully, but these errors were encountered: