Skip to content

Debug inside WSL #1408

@MathiasMagnus

Description

@MathiasMagnus

Problem

Since it is now possible to launch VS Code from within WSL starting from Insider build 17063, I wanted to try side-by-side debugging, but for some reason VS Code cannot debug inside WSL. When I start to debug a Hello World application, this is what shows inside the debug output pane:

=thread-group-added,id="i1"
GNU gdb (Ubuntu 7.11.1-0ubuntu1~16.5) 7.11.1
Copyright (C) 2016 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word".
=cmd-param-changed,param="pagination",value="off"
ERROR: Unable to start debugging. Unexpected GDB output from command "-exec-run". During startup program exited normally.
The program '/mnt/c/Users/nagy-/Source/MinimalCpp14/.vscode/build/Debug/MinimalCpp14' has exited with code 0 (0x00000000).

Am I doing something wrong?

Metadata

Metadata

Assignees

No one assigned

    Labels

    debuggermore info neededThe issue report is not actionable in its current state

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions