Breakpoint in visual studio does not load at debug

Asked

Viewed 2,605 times

4

I have a solution with 3 projects, one of them being Ex.utils and Ex.Api. Where the . dll of the utils project is referenced in Ex.Api in 'References'. Both compiled in the same version of . NET.

When running debug, breakpoint, after numerous searches, remains as if unavailable.

inserir a descrição da imagem aqui

  • Started out of thin air? It’s just this block of code?

  • Ever tried to give a clean and a rebuild in solution?

  • I’ve done what @Marcogiovanni quoted, I’ve compared the . NET version of the projects, both equal.

  • @Gabrielcoletta happens this anywhere I put the breakpoint to debug.

  • started from scratch? Or you just install the IDE?

  • Within the break point conditions, you have the location setting. Click "Enable source from a different location than the original" and see if it’s right

  • I just downloaded, installed the dependencies and plugins and associated to my database. The project runs 'ok', I’m just not able to debug.

  • 1

    At a glance in this answer to see if it helps

  • @Marcogiovanni came to check this alternative also.

  • @Diegosantos could explain me better?

  • 1

    Answering below with print, see if it solves...

  • It is probably being compiled in Release mode, change to Debug. inserir a descrição da imagem aqui

  • 1

    The topic is old, but it happened to me, so maybe other people will go through it. Make sure you have not changed the solution settings for RELEASE instead of DEBUG.. I was distracted and didn’t see it, I was banging my head for a few minutes. = D

Show 8 more comments

4 answers

4


Have you tried to check if the project you are debugging is marked as the main project? When I use more than one project sometimes it happens to me. If I have two web projects in the same Solution and it is debugging one and the other is marked as "the startup project" it debugs only what is marked.

I hope that’s your case! abs.

inserir a descrição da imagem aqui

3

I also went through this, and it’s only natural that you click on the properties of the project, in the Build tab, click Advanced, and in the "Debbuging Information" option, leave as Full.

inserir a descrição da imagem aqui

1

Try this way:

Right click on break point, then click on "Conditions"

inserir a descrição da imagem aqui

Click on the link right after "Location:"

inserir a descrição da imagem aqui

Enable the checkbox "Allow the source code to be Different from the original".

inserir a descrição da imagem aqui

Maybe it’ll solve...

  • 1

    Unfortunately it didn’t work. But it was worth a try! :)

0

I know I’m being delayed, but I hope to help someone else who may need it. I also went through it today. my solution was to disable only my code option. to do so, you need to go to [debugger] -> [options] -> [General] -> [enable only my code].

Browser other questions tagged

You are not signed in. Login or sign up in order to post.