我在Visual 2015中创建了一个新的空白应用程序(Xamarin.Forms Portable)项目,并修改了App.cs以始终抛出异常:
public class App : Application
{
public App()
{
// The root page of your application
MainPage = new ContentPage
{
Content = new StackLayout
{
VerticalOptio
使用golang调试器的visual代码与gopath路径代码不匹配?
我使用visual代码IDE MAC OS构建了golang环境,然后安装了必要的工具:
go get -v -u github.com/peterh/liner github.com/derekparker/delve/cmd/dlv
go get -u -v github.com/nsf/gocode
go get -u -v github.com/rogpeppe/godef
go get -u -v github.com/golang/lint/golint
go get -u -v github.com/luke
#include "stdafx.h"
#include <fstream>
#include <iostream>
using namespace std;
int main()
{
char ch;
int a = 0;
int e = 0;
int i = 0;
int o = 0;
int u = 0;
std::ifstream file("myfile.txt", std::ifstream::in);
if (file.is_open())
{
我希望Visual在发生处理异常时中断(也就是说,我不想看到“第一次机会”消息,我想调试实际的异常)。
例如,我希望调试器在异常时中断:
try
{
System.IO.File.Delete(someFilename);
}
catch (Exception)
{
//we really don't care at runtime if the file couldn't be deleted
}
我偶然看到了VisualStudio.NET的便笺:
1)在VS.NET中,转到Debug菜单>>“Exception.”>>“公共语言运行时