Visual Studio的code调试客户端的JavaScript [英] Visual Studio Code debugging client side JavaScript

查看:116
本文介绍了Visual Studio的code调试客户端的JavaScript的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用Visual Studio code为JavaScript项目。您可以设置断点和单步调试很容易,在运行的NodeJS的code。有什么办法,允许客户端断点调试,浏览器中运行code?

I am using Visual Studio Code for a javascript project. You can set breakpoints and step through and debug very easily the code that runs in nodejs. Is there any way to allow breakpoints and debugging for the client side, browser running code?

通过的console.log调试变老真正的快。

Debugging via console.log gets old real quick.

推荐答案

有关在Chrome中调试还有就是<一个href=\"https://blogs.msdn.microsoft.com/cdndevs/2015/12/21/visual-studio-$c$c-debugger-for-chrome-extension/\">Visual工作室code:调试器Chrome扩展。你可以找到这个扩展在市场上,<一个href=\"https://marketplace.visualstudio.com/search?term=debugger&target=VS$c$c&sortBy=Downloads\">search对于调试器告诉记者,在调试手册。不幸的是,(目前)其他浏览器不支持,

For debugging in Chrome there is the Visual Studio Code: Debugger for Chrome extension. You can find this extension in the marketplace, search for debugger as told in the debugging manual. Unfortunately there is (currently) no support for other browsers,

调试node.js的开箱的,见上面的调试手册或约翰爸爸的博客帖子

Debugging node.js works out of the box, see the debugging manual above or John Papa's blog post.

调试客户端和服务器(菲尔评论)至少在我看来是不可能的,因为你需要有两个不同的启动配置,对不起。

Debugging both client and server (as Phil commented) is not possible at least in my opinion since you need to have two different launch configurations, sorry.

这篇关于Visual Studio的code调试客户端的JavaScript的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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