locked
unable to debug cshtml file RRS feed

  • Question

  • User-1202579601 posted

    Trying to use shieldui controls in .net core vs2017. Unable to debug cshtml.

    Wednesday, November 4, 2020 2:29 PM

All replies

  • User-474980206 posted

    vs 2017 only supports core 2.1. If you want to use 3.1 or .net 5 (to be released next week) upgrade to vs2019 or switch to visual studio code.

    Wednesday, November 4, 2020 3:30 PM
  • User475983607 posted

    Trying to use shieldui controls in .net core vs2017. Unable to debug cshtml.

    What does "unable to debug cshtml" mean?  ShieldUi is a jQuery library.  Have you tried ShieldUI support?  Have you tried using dev tools to debug your scripts?

    Wednesday, November 4, 2020 3:55 PM
  • User-1202579601 posted

    I was specifying the context of my usage. Can we place breakpoints and debug cshtml file?

    vs gives message as- cannot place breakpoint at this location on razor tags also.

    Wednesday, November 4, 2020 4:21 PM
  • User475983607 posted
     
    I was specifying the context of my usage. Can we place breakpoints and debug cshtml file?
     
     
    vs gives message as- cannot place breakpoint at this location on razor tags also.
     
    A cshtml file is just an HTML wrapper around data and should not contain any logic other than maybe a loop.  Anyway, you should be able to set a break point on any Razor code block.  You cannot set a break point on HTML.
    Wednesday, November 4, 2020 4:52 PM
  • User-474980206 posted

    you can place a breakpoint on any C# code, just not html.

    Wednesday, November 4, 2020 10:40 PM