Typescript VS2017在第一行停止,错误:未启用调试器代理 [英] Typescript VS2017 stops at first line, error: Debugger agent is not enabled

查看:64
本文介绍了Typescript VS2017在第一行停止,错误:未启用调试器代理的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我在Visual Studio 2017中启动新创建的Typescript项目时,会发生一些奇怪的行为.

When I start a newly created Typescript Project in Visual Studio 2017 theres some strange behaviour going on.

-调试器在第一行中断

-输出显示:

code:-32000
message:Debugger agent is not enabled

-解决方案资源管理器中的许多脚本(请参见屏幕截图)

-Many scripts in solution explorer (see screenshot)

-节点输出:

Debugger listening on wb://127.0.0.1:5858/03dde2a0-7ae8-44fc-8b29-53b99c072de7
For help see https://nodejs.org/en/docs/inspector
Debugger attached.

截屏:

似乎是新节点版本的问题.如果我切换回5.4.1.0(包含在VS2017中),一切正常.我读到调试器协议发生了变化,也许与此有关……必须等待更新.

Seems to be a problem with the new node version. If I switch back to 5.4.1.0 (included in VS2017) everything works fine. I read that there has been a change in debugger protocol maybe it has something to do with that... gotta wait for an update.

推荐答案

我通过使用包含的VS2017节点版本再次使其工作.新版本< 8似乎有问题.

I got it working again by using the included node version of VS2017. There seems to be a problem with the new version <8.

您可以通过将exe文件夹的路径放在此处列表的顶部来选择要使用的版本: Tools>选项>项目和解决方案Web软件包管理>外部Web工具

You can choose which version to use by putting the path to the exe folder on top of the list here: Tools > Options > Projects and Solutions > Web Package Management > External Web Tools

这篇关于Typescript VS2017在第一行停止,错误:未启用调试器代理的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆