Asp.Net MVC Enable breakpoint instruction Javascript

Asked

Viewed 96 times

1

  • 1

    Hello, I have never tried debugging by Visual studio, if I’m not mistaken only possible if you run the site by IE, you can do this more easily by Console (F12) in Chrome or Firefox

  • I tried by IE but it didn’t work either. How do you debug?

  • Open the Localhost URL with Chrome and press F12.

  • @Pedromapelli Managed to solve your problem?

  • By Visual Studio no, actually in a way yes, I start debugging through the browser console, I put breakpoints through the browser, and then I can continue through Visual Studio...

1 answer

0

In Visual Studio 2019, I believe this feature already exists since 2017, just you enable the option to Script Debugging.

But it will only stop at the breakpoints of scripts contained in files .js or .ts. And if you use Chrome or IE/Edge as your browser.

inserir a descrição da imagem aqui

If this option is not present in the IDE, next to start, you can go to Debug > Options and enable the option there

inserir a descrição da imagem aqui

Browser other questions tagged

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