Skip to content

Document how to get timeline events in devtools in vscode debug configurations #6901

@dcharkes

Description

@dcharkes

Page URL

https://dart.dev/tools/dart-devtools

Page source

https://github.com/dart-lang/site-www/blob/main/src/content/tools/dart-devtools.md

Describe the problem

We don't have any documentation on how to run the debugger from vscode for Dart standalone with the --observe flag to get timeline events.

	"launch": {
		"version": "0.2.0",
		"configurations": [
			{
				"name": "Dart",
				"type": "dart",
				"request": "launch",
				"vmAdditionalArgs": [
					"--observe"
				],
				"program": "pkgs/hooks_runner/test/build_runner/build_runner_test.dart",
			}
		],
		"compounds": []
	}

Expected fix

Add an extra column to the table "debug configuration in vscode".

And a header and section to detail how to run devtools for a debug configuration in vscode.

(We already have info on the flutter.dev website, but we don't on the dart.dev website.)

Additional context

Related issue:

cc @parlough @antfitch @elliette

I would like to fix this problem.

  • I will try and fix this problem on dart.dev.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions