Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
B
baas-ide
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
guxukai
baas-ide
Commits
6a6b9ae0
Commit
6a6b9ae0
authored
Jun 16, 2021
by
yann300
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
make async
parent
060a18e9
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
5 deletions
+7
-5
VmDebugger.ts
libs/remix-debug/src/debugger/VmDebugger.ts
+7
-5
No files found.
libs/remix-debug/src/debugger/VmDebugger.ts
View file @
6a6b9ae0
...
...
@@ -189,7 +189,7 @@ export class VmDebuggerLogic {
})
})
this
.
debugger
.
event
.
register
(
'indexChanged'
,
this
,
(
index
)
=>
{
this
.
debugger
.
event
.
register
(
'indexChanged'
,
this
,
async
(
index
)
=>
{
if
(
index
<
0
)
return
if
(
this
.
stepManager
.
currentStepIndex
!==
index
)
return
if
(
!
this
.
storageResolver
)
return
...
...
@@ -201,11 +201,13 @@ export class VmDebuggerLogic {
for
(
var
k
in
this
.
addresses
)
{
var
address
=
this
.
addresses
[
k
]
var
storageViewer
=
new
StorageViewer
({
stepIndex
:
this
.
stepManager
.
currentStepIndex
,
tx
:
this
.
tx
,
address
:
address
},
this
.
storageResolver
,
this
.
_traceManager
)
storageViewer
.
storageRange
().
then
((
result
)
=>
{
storageJSON
[
address
]
=
result
this
.
event
.
trigger
(
'traceStorageUpdate'
,
[
storageJSON
])
}
)
try
{
storageJSON
[
address
]
=
await
storageViewer
.
storageRange
()
}
catch
(
e
)
{
console
.
error
(
e
)
}
}
this
.
event
.
trigger
(
'traceStorageUpdate'
,
[
storageJSON
])
})
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment