Search code examples
visual-studiogoogle-chromevisual-studio-2012visual-studio-debugging

VS 2012: Real support for debugging via Chrome now is supported?


Can we now debug websites / services and set break points while using Google Chrome as the browser ? Or is this still only supportable in IE ?

I know before setting breakpoints (F9) and then debugging in IE worked without problems but using chrome was never supported.

I have tried to use google to find the answer to this but I am still unable to confirm it, I can't believe that debugging on services / sites are still not support in VS via another browser apart from IE.

I know the VS 2013 is upcoming, maybe this will address the problem?

EDIT

Sorry i should have made it clear, i am talking about client side debugging directly in VS using a NON IE Browser


Solution

  • You are misunderstanding client and server-side.

    Client-side:

    We don't care if the website is developed in .Net, with Visual Studio, PHP or whatever you want, the browser gives you some tools for debugging websites so the problem is from the browser not Visual Studio. Even if you upgrade to VS 2013 that won't change your problem, Visual Studio has no way to know the state of the JavaScript for a page opened by a client for example.

    You may have heard about SignalR used in VS 2013 (Browser link feature) and that may have confused you, if so SignalR is only for refreshing client-side pages when you edit the view for example, but not for debugging.

    Server-side:

    Add your breakpoint in Visual Studio and then attach the debugger (Tools > Attach to process). In that way you will be able to debug server-side code (e.g. C# code) in Visual Studio. Note that the browser has no way to know the code server-side.