Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

241
Views
Does anyone know why Visual Studio can't set a breakpoint after the update?

I upgraded the version from 2019 to 2022; enter image description here

But this action caused a problem: I cannot insert breakpoint anymore (.cshtml file),other formats can still insert breakpoints. enter image description here

enter image description here

I tried to modify the debug settings, failed. I don't know the reason, so can anyone tell me the reason? I am sure the code has no problem, is it the reason for the version 2022?

over 4 years ago · Santiago Trujillo
1 answers
Answer question

0

I found a workaround: Instead of inline code like this:

@Html.Raw(Model.template.Css)

Try to refactor like this:

@{
    Html.Raw(Model.projectCss);
}

You can then place the breakpoint on the line in the middle.

over 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!