microsoft / vscode-mono-debug

A simple VS Code debug adapter for mono
Other
159 stars 173 forks source link

Not stopping at breakpoints in Mono 5 #31

Closed lxwbr closed 7 years ago

lxwbr commented 7 years ago

It looks like attached mono-debug is not stopping at breakpoints while using mono 5.0.0.100 - Stable release (10 May 2017).

TOTBWF commented 7 years ago

To any others facing this issue, the move from xbuild to msbuild in mono 5 changed the way you need to generate debug symbols. You need to specify debugtype to be full, either by using msbuild /p:DebugType=full or by adding

  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
    <DebugSymbols>true</DebugSymbols>
    <DebugType>full</DebugType>
  </PropertyGroup>

to your project files.