Skip to content

Store an instance to console #5049

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 13 commits into from
Closed

Store an instance to console #5049

wants to merge 13 commits into from

Conversation

polina-c
Copy link
Contributor

@polina-c polina-c commented Jan 13, 2023

RELEASE_NOTE_EXCEPTION=[under flag]

@polina-c polina-c changed the title Eval1 Store an instance to console Jan 13, 2023
@polina-c polina-c marked this pull request as ready for review January 13, 2023 22:34
@polina-c polina-c requested review from bkonyi and a team as code owners January 13, 2023 22:34
Comment on lines +46 to +57
final response1 = await serviceManager.service!
.evaluate(isolateId, instance.id!, 'toString()');
print('!!!! eval without scope: ' + response1.json!['valueAsString']);

// eval object
final response2 = await serviceManager.service!.evaluate(
isolateId,
instance.id!,
'identityHashCode(this)',
scope: {'this': instance.id!},
);
print('!!!! eval with scope: ' + response2.json!['valueAsString']);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

are these supposed to still be there? both the responses and the prints?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

they are under TODO to move them out


@override
final HeapClassName heapClass;
}) : super(objectsByPath, heapClass);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

these can both be super parameters in the constructor directly

DiffClassStats._({
    required super.heapClass,
    required super.objectsByPath,
    required this.total,
  })

sampleObtainer,
),
const MenuItemButton(
child: Text('Browse an instance in console'),
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe this should mention the work "references" to make it clear what you can browse

@polina-c
Copy link
Contributor Author

Addressed the comments in #5053

@polina-c polina-c closed this Jan 14, 2023
@polina-c polina-c deleted the eval1 branch January 14, 2023 01:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants