zoukankan      html  css  js  c++  java
  • Debug Dart at External Terminal

    launch.json

    {
        // Use IntelliSense to learn about possible attributes.
        // Hover to view descriptions of existing attributes.
        // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
        "version": "0.2.0",
        "configurations": [
            {
                "name": "Dart",
                "type": "dart",
                "request": "attach",
                "preLaunchTask": "launch",
                "observatoryUri": "http://127.0.0.1:8181"
            }
        ]
    }

    tasks.json

    {
        // See https://go.microsoft.com/fwlink/?LinkId=733558
        // for the documentation about the tasks.json format
        "version": "2.0.0",
        "tasks": [
            {
                "label": "launch",
                "type": "shell",
                "command": "DartLauncher",
                "args": [
                    "--enable-vm-service",
                    "--pause_isolates_on_start",
                    "${file}"
                ]
            }
        ]
    }

    DartLauncher.cs

    using System;
    using System.Diagnostics;
    using System.Linq;
    
    namespace DartLauncher
    {
        class DartLauncher
        {
            [STAThread]
            static void Main(string[] args)
            {
                new Process
                {
                    StartInfo = new ProcessStartInfo
                    {
                        FileName = "dart",
                        Arguments = String.Join(" ", args.Select((arg) => """ + arg + """))
                    }
                }.Start();
            }
        }
    }
  • 相关阅读:
    docker 简单使用
    apache 目录网站显示indexs
    MySQL索引失效的几种情况
    mysql 基本常用语句
    UNIX 版本
    B语言的发明者 Ken Thomson & C语言的发明者Dennis Ritchie
    My SQl 积累
    C# DGV多行选择
    C#中很模糊查询DGV中数据的两种方法
    网址
  • 原文地址:https://www.cnblogs.com/JebediahKerman/p/Debug_Dart_at_External_Terminal.html
Copyright © 2011-2022 走看看