Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

457
Vistas
I Can Only Add Breakpoints to Certain JavaScript Files in Visual Studio?

I'm having an issue where I have multiple JavaScript files, but only some of them allow me to add breakpoints within Visual Studio 2022. Files where I can't give the message "Breakpoint will not be hit. Breakpoint set but not yet bound".

I believe the issue to be that only Javascript files with methods that are called by events in the Cshtml allow breakpoints, but JS files with method only called by JavaScript don't allow for breakpoints.

Any guidance or help to understand this would be greatly appreciated. I've attached a couple of pictures.

Breakpoint able to be set, file A.

Breakpoint not able to be set, file B.

about 4 years ago · Juan Pablo Isaza
1 Respuestas
Responde la pregunta

0

According to the following link, you can see that “For ASP.NET and ASP.NET Core, debugging embedded scripts in CSHTML files is not supported. JavaScript code must be in separate files to enable debugging.”.

Link: https://docs.microsoft.com/en-us/visualstudio/javascript/debug-nodejs?view=vs-2022

You can follow the steps in the link above to debug a JavaScript in Visual Stuido.

You might also use Chrome Developer Tools or F12 Tools for Microsoft Edge instead. See this.

about 4 years ago · Juan Pablo Isaza Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda