0

I have got a crash dump of a C++ application from Linux platform. How can I use that on Windows to look at the state of the program (call stack, variable values, thread info, etc.)?

Can I use Visual Studio/VSCode?

Rakesh Agarwal
  • 3,009
  • 9
  • 33
  • 40
  • 2
    You need to use the tool-chain tools that are: built for or are meant to work with the dump and compiled application. You don't give enough information in the question to allow any further help. – Richard Critten Nov 05 '19 at 13:41
  • Any update for this issue? Maybe [https://stackoverflow.com/questions/55736235/how-do-you-debug-a-linux-core-dump-using-vscode](https://stackoverflow.com/questions/55736235/how-do-you-debug-a-linux-core-dump-using-vscode) helps. – Pod Mo Nov 12 '19 at 03:13
  • I could not find a proper way to debug linux core dump on Windows. So, I instead set up a linux dev environment and debug(gdb) the core dump there. Thanks! – Rakesh Agarwal Nov 14 '19 at 15:54

2 Answers2

1

Right now you can't debug a Linux core dump just with Visual Studio running on Windows. But you can remote connect the Visual Studio debugger to a Linux machine following these instructions.

Claudiu Guiman
  • 837
  • 5
  • 18
1

You can use GDB on Windows for that, if it was compiled with support for Linux targets. But you still need the binaries and symbols.

(Sorry, I don't know if VSCode comes with such a GDB)

Christian B
  • 581
  • 4
  • 7