如何在服务器端代码中调试?

时间:2021-08-22 17:59:19

I have download & install vscode on my ubuntu 14.04 lts box, and It's working fine. I have created one app in node.js, and want to debug it. When I put debug point in my app.js file, and hit f5 (run), and seems it's working. But How to debug server side and client side code? Do you have any video tutorial in detail, so new user can understand it. Thanks

我已经在我的ubuntu 14.04 lts盒子上下载并安装了vscode,它工作正常。我在node.js中创建了一个应用程序,并希望对其进行调试。当我在我的app.js文件中放入调试点,并点击f5(运行),似乎它正在工作。但是如何调试服务器端和客户端代码?你有没有详细的视频教程,所以新用户可以理解它。谢谢

2 个解决方案

#1


VSCode only supports node and mono (on linux and mac) debugging atm. Client side debugging is not currently supported, you can vote for it here: https://visualstudio.uservoice.com/forums/293070-visual-studio-code?filter=hot&page=1

VSCode只支持node和mono(在linux和mac上)调试atm。目前不支持客户端调试,您可以在此投票:https://visualstudio.uservoice.com/forums/293070-visual-studio-code?filter = hot&page = 1

We might produce video tutorials for new users soon.

我们很快就会为新用户制作视频教程。

In the meantime you can look at the docs https://code.visualstudio.com/Docs/debugging

在此期间,您可以查看文档https://code.visualstudio.com/Docs/debugging

#2


The VSCode debugger does not support to debug clients (browsers) because browsers already have built-in debuggers (and other dev tools) that are much better integrated than VSCode can ever be. So please use VSCode for debugging your node server and for debugging the client at the same time open the development tools of your browser.

VSCode调试器不支持调试客户端(浏览器),因为浏览器已经具有内置调试器(和其他开发工具),它们比VSCode集成得更好。因此,请使用VSCode调试节点服务器并调试客户端,同时打开浏览器的开发工具。

#1


VSCode only supports node and mono (on linux and mac) debugging atm. Client side debugging is not currently supported, you can vote for it here: https://visualstudio.uservoice.com/forums/293070-visual-studio-code?filter=hot&page=1

VSCode只支持node和mono(在linux和mac上)调试atm。目前不支持客户端调试,您可以在此投票:https://visualstudio.uservoice.com/forums/293070-visual-studio-code?filter = hot&page = 1

We might produce video tutorials for new users soon.

我们很快就会为新用户制作视频教程。

In the meantime you can look at the docs https://code.visualstudio.com/Docs/debugging

在此期间,您可以查看文档https://code.visualstudio.com/Docs/debugging

#2


The VSCode debugger does not support to debug clients (browsers) because browsers already have built-in debuggers (and other dev tools) that are much better integrated than VSCode can ever be. So please use VSCode for debugging your node server and for debugging the client at the same time open the development tools of your browser.

VSCode调试器不支持调试客户端(浏览器),因为浏览器已经具有内置调试器(和其他开发工具),它们比VSCode集成得更好。因此,请使用VSCode调试节点服务器并调试客户端,同时打开浏览器的开发工具。