Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remote debugging: Error retrieving websocket debug proxy information from web.config #125

Closed
miparnisari opened this issue May 15, 2015 · 7 comments
Labels

Comments

@miparnisari
Copy link

Using VS 2013 Ultimate Update 4, I'm getting the error

Error retrieving websocket debug proxy information from web.config

When trying to do Attach debugger (node.js) in the server explorer.

@mousetraps
Copy link
Contributor

Did you try uncommenting and commenting out the relevant parts in the web.config file? Unless you're using web deploy, the web.config file does not undergo the debug transformation.

@miparnisari
Copy link
Author

Not sure what you mean. This is my Web.config:

<configuration>
  <system.webServer>
    <handlers>
      <add name="iisnode" path="app.js" verb="*" modules="iisnode"/>
    </handlers>
    <rewrite>
      <rules>
        <rule name="DynamicContent">
          <match url="/*"/>
          <action type="Rewrite" url="app.js"/>
        </rule>
      </rules>
    </rewrite>
  </system.webServer>
  <!--
    For a description of web.config changes see http://go.microsoft.com/fwlink/?LinkId=235367.

    The following attributes can be set on the <httpRuntime> tag.
      <system.Web>
        <httpRuntime targetFramework="4.5" />
      </system.Web>
  -->
  <system.web>
    <compilation targetFramework="4.5"/>
    <pages controlRenderingCompatibilityVersion="3.5" clientIDMode="AutoID"/>
  </system.web>
</configuration>

@mousetraps
Copy link
Contributor

We should add a better way of doing this, but you can either try creating one of the azure node templates, or look at the web config and web. debug.config in the following folder
https://github.com/Microsoft/nodejstools/tree/master/Nodejs/Product/Nodejs/ProjectTemplates/AzureExpressApp

Either try including the web.debug.config from there in your project and right click and select preview transform or something similar, and copy the result to your web.config file. Or start with the web.config in the template and uncomment/comment accordingly.

After you do that, you'll also need to enable web sockets from the azure website portal if you haven't already.

Sent from my Rotary Phone

On May 15, 2015, at 1:24 PM, María Inés Parnisari [email protected] wrote:

Not sure what you mean. This is my Web.config:

@mousetraps
Copy link
Contributor

If you are using web deploy (which we don't recommend because you are more likely to run into #69) the debug transformation will happen automatically in the debug configuration so you wouldn't have to manually transform the file yourself.

@mousetraps
Copy link
Contributor

Any updates on this issue? Did you manage to get it working?

@billti
Copy link
Member

billti commented Nov 5, 2015

I hit this issue also yesterday with the latest NTVS bits and a fresh Azure deployment. Looks like something is still amiss here.

I could attach using the 'Attach to Process' dialog rather than Server Explorer (as outlined at https://github.com/Microsoft/nodejstools/wiki/Advanced-Debugging#attaching-without-server-explorer ), so it would seem debugging was configured fine on the Azure end, it's likely the VS end which has the issue.

@billti billti added bug and removed documentation labels Nov 5, 2015
@billti billti modified the milestones: Future, November Nov 5, 2015
@mousetraps mousetraps modified the milestones: November, January Dec 11, 2015
@paulvanbrenk paulvanbrenk modified the milestone: On Radar Aug 24, 2017
@paulvanbrenk
Copy link
Contributor

Looks like remote debugging is no longer working, and we need to make a bunch of changes to handle the changes in Azure (and Node 8+).

Closing as this should be part of the larger Azure plans.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants