Samsung / netcoredbg

NetCoreDbg is a managed code debugger with MI interface for CoreCLR.
MIT License
800 stars 103 forks source link

Can't hit breakpoint in asp.net core web application #145

Closed lem102 closed 11 months ago

lem102 commented 11 months ago

Using the cli, if I attach to a running asp.net core program and put a breakpoint in a controller method, the debugger does not stop at the breakpoint when the controller endpoint is called.

To reproduce, clone this repo: https://github.com/FabianGosebrink/ASPNETCore-WebAPI-Sample Try to debug one of the controller methods by placing a breakpoint, maybe add a Console.WriteLine to confirm that it is indeed running.

Some ideas as to where the problem is originating from (perhaps in the code, maybe in my machine :smile: ) would be appreciated, then I can take a look myself.

gbalykov commented 11 months ago

Did you build netcoredbg from source or used binaries? Do you run this on windows or linux?

lem102 commented 11 months ago

Sorry, I should have included that in my initial message.

Built from source, on debian linux.

gbalykov commented 11 months ago

Please share build commands too

lem102 commented 11 months ago

I was mistaken in the nature of the bug I am experiencing. I will close this issue and open another one.