Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Peter Flannery 23 posts 43 karma points
    Jan 01, 2012 @ 16:57
    Peter Flannery
    0

    debugging razor in app_code folder?

    Can someone tell me if there is a way to use vs.net debugger with razor scripts that are placed in the app_code folder?

    Because I can debug the razor scripts in macroScripts folder but I'm not able to debug the scripts placed in the app_code folder.

    Thanks.

  • Ismail Mayat 4511 posts 10090 karma points MVP 2x admin c-trib
    Jan 03, 2012 @ 10:41
    Ismail Mayat
    0

    Peter,

    Open the file in vs add the bookmark then in visual studio attach to process, you will have to ensure site is running locally.

    Regards

     

    Ismail

  • Peter Flannery 23 posts 43 karma points
    Jan 03, 2012 @ 13:32
    Peter Flannery
    0

    Great thanks for your help. I've managed to get this working now.

    Before I couldn't get debugging working from inside vs.net because of an error 'Could not create type 'umbraco.webservices.documents.documentService'.

    So I've always lazily gone straight to the browser using my IIS 7 setup.

    But your advice today made me attempt debugging from VS using a custom server instead and its worked.

    Many thanks again.

Please Sign in or register to post replies

Write your reply to:

Draft