debugger: Highlight the size of jumped-to memory (#34504)
Closes #ISSUE Release Notes: - N/A
This commit is contained in:
parent
afbd2b760f
commit
7ca3d969e0
2 changed files with 21 additions and 8 deletions
|
@ -1787,7 +1787,7 @@ impl Session {
|
|||
frame_id: Option<u64>,
|
||||
expression: String,
|
||||
cx: &mut Context<Self>,
|
||||
) -> Task<Option<String>> {
|
||||
) -> Task<Option<(String, Option<String>)>> {
|
||||
let request = self.request(
|
||||
EvaluateCommand {
|
||||
expression,
|
||||
|
@ -1801,7 +1801,9 @@ impl Session {
|
|||
);
|
||||
cx.background_spawn(async move {
|
||||
let result = request.await?;
|
||||
result.memory_reference
|
||||
result
|
||||
.memory_reference
|
||||
.map(|reference| (reference, result.type_))
|
||||
})
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue