vscode-csharp icon indicating copy to clipboard operation
vscode-csharp copied to clipboard

Breakpoints kill debugger

Open seanmccay opened this issue 7 years ago • 3 comments

Issue Type: Bug

Setting a breakpoint kills or prevents debugger from running.

scenario 1:

  1. set breakpoint in a file
  2. start debugging
  3. watch preLaunchTask run successfully
  4. once preLaunchTask completes, debug console comes into focus
  5. debugger stops.

scenario 2:

  1. have no breakpoints set
  2. start debugging
  3. debugger starts successfully, api is running
  4. set breakpoint
  5. debugger stops

Extension I think is in question: Omnisharp C# Extension version: 1.19.0 VS Code version: Code 1.33.1 (51b0b28134d51361cf996d2f0a1c698247aeabd8, 2019-04-11T08:20:22.771Z) OS version: Linux x64 5.0.0-13-generic

System Info
Item Value
CPUs AMD Ryzen 7 1700 Eight-Core Processor (16 x 1501)
GPU Status 2d_canvas: enabled
checker_imaging: disabled_off
flash_3d: enabled
flash_stage3d: enabled
flash_stage3d_baseline: enabled
gpu_compositing: enabled
multiple_raster_threads: enabled_on
native_gpu_memory_buffers: disabled_software
rasterization: disabled_software
surface_synchronization: enabled_on
video_decode: unavailable_off
webgl: enabled
webgl2: enabled
Load (avg) 5, 2, 1
Memory (System) 31.40GB (24.15GB free)
Process Argv --unity-launch
Screen Reader no
VM 0%

seanmccay avatar May 02 '19 22:05 seanmccay

@seanmccay I see that you are on Linux. Are you on Ubuntu 19.04 (or a downstream OS)? If so, I am guessing you are running into https://github.com/OmniSharp/omnisharp-vscode/issues/3010 and you should install the latest beta which has a fix.

Otherwise, can you try enabling logging?

gregg-miskelly avatar May 03 '19 00:05 gregg-miskelly

@gregg-miskelly I am on Pop!_OS 19.04. I installed the beta and my problem has been resoved :). I was having all kinds of weird problems before, but I'm not seeing them now. Thanks.

seanmccay avatar May 04 '19 20:05 seanmccay

I get something like your first issue on windows 11. Setting focus to another window, (alt tab) and then back to vs code will make omnisharp debugger work again for this debugging session.

spiko-md avatar Dec 30 '21 20:12 spiko-md