如何在Visual Studio Code中设置调试? [英] How do I set up debugging in Visual Studio Code?

查看:120
本文介绍了如何在Visual Studio Code中设置调试?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Microsoft Visual Studio代码

我是编程新手。我已经练习了两个多月了。

我很喜欢VS Code,它很快就能开始编码。

如何设置它来编译或者调试我的代码吗?

设置都令人困惑。



我还有VS 2015和MinGW(C:\ MinGW)已安装。



目前我正在使用VS2015来编译我的代码。

VS2015开始很慢。

Microsoft Visual Studio Code
I'm new to programming. I've been practicing for over two months now.
I just love VS Code, it's fast to launch to start coding.
How can I setting it up to compile or debug my code in it?
The settings are all confusing.

I also have VS 2015 and MinGW (C:\MinGW) installed.

Currently I am using VS2015 to compile my code.
VS2015 is slow to start.

推荐答案

嗯,可能的解决办法是

调试在Visual Studio 中[ ^ ]

使用调试器浏览代码 [ ^ ]

掌握Visual Studio 2010中的调试 - 初学者指南 [ ^ ]

使用Visual Studio进行基本调试 [ ^ ]



-KR
Umm, possible solution could be
Debugging in Visual Studio[^]
Navigating through Code with the Debugger[^]
Mastering Debugging in Visual Studio 2010 - A Beginner's Guide[^]
Basic Debugging with Visual Studio[^]

-KR


参考此文档: Visual Studio代码 - 调试 [ ^ ]

Referring to this document: Visual Studio Code - Debugging[^]
Quote:

今天我们在所有平台上都有对Node.js(JavaScript和TypeScript)的良好调试支持,以及在OS X和Linux上对Mono(C#和F#)的实验性支持。

Today we have good debugging support for Node.js (JavaScript and TypeScript) on all platforms and experimental support for Mono (C# and F#) on OS X and Linux.



Mono对C#和F#的支持是实验性的,仅适用于OS X和Linux,但尚未在Windows上使用。这意味着如果您在Windows上,则无法在Visual Studio代码中调试C#应用程序;您将不得不使用另一个Visual Studio版本(例如VS 2015 Express或VS 2015社区)来调试您的应用程序。


Mono support for C# and F# is experimental and only available on OS X and Linux, but not yet on Windows. This means that you cannot debug your C# applications in Visual Studio Code if you're on Windows; you'll have to use another Visual Studio version (such as VS 2015 Express or VS 2015 Community) to debug your applications.


这篇关于如何在Visual Studio Code中设置调试?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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