Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

448
Visualizações
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 Respostas
Responde à pergunta

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 Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda