question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Debugger not stopping at breakpoint

See original GitHub issue

Steps to reproduce

  1. Generate new RC2 netcore project with: dotnet new --lang F#
  2. Add a line before the entry point so Program.fs looks like this:
open System

let a = [""] // <-- if this line is removed, the debugger will attach

[<EntryPoint>]
let main argv = 
    printfn "Hello World!" // <-- put breakpoint here
    printfn "%A" argv
    0

Expected behavior

Visual Studio debugger will stop at the breakpoint.

Actual behavior

Not stopping at breakpoint.

Environment data

dotnet --info output:

VS2015 with Dotnet Core RC2

.NET Command Line Tools (1.0.0-preview1-002702)

Product Information:
 Version:     1.0.0-preview1-002702
 Commit Sha:  6cde21225e

Runtime Environment:
 OS Name:     Windows
 OS Version:  10.0.10586
 OS Platform: Windows
 RID:         win10-x64

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
livarcocccommented, Jul 20, 2017

Just tried this out. Works with VS 2017 and 2.0 .NET Core SDK.

0reactions
ncavecommented, Jul 20, 2017

Awesome!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Why doesn't debugger stop at breakpoint?
4. It usually means the code is not invoked. · It is difficult to determine without a reproducible test case. Can you create...
Read more >
Visual Studio debugger doesn't stop on breakpoints
Right-click your project from the Solution Explorer, and then click Properties. Click the Web tab. Under Debuggers, check the ASP.NET checkbox.
Read more >
VSCode Breakpoint not hitting/stopping when run in ...
When Start Debugging is fired, the program runs successfully. However the program doesn't stop at breakpoints. Breakpoint is enabled and placed ...
Read more >
PyCharm 2020.1 not stopping on breakpoints anymore.
Unchecking "Gevent compatilble" in Pycharm settings (under Python Debugger) solved the issue. Hope this helps. 2. Avatar.
Read more >
Visual Studio debugger does not stop on a breakpoint
The Visual Studio debugger does not stop on a valid breakpoint when attaching to an application running on your local PC, despite having...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found