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
8089a24f
Commit
8089a24f
authored
Jul 24, 2019
by
yann300
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
standard
parent
7b276446
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
12 deletions
+11
-12
debuggerUI.js
src/app/tabs/debugger/debuggerUI.js
+11
-12
No files found.
src/app/tabs/debugger/debuggerUI.js
View file @
8089a24f
...
@@ -103,15 +103,15 @@ class DebuggerUI {
...
@@ -103,15 +103,15 @@ class DebuggerUI {
return
this
.
isActive
return
this
.
isActive
}
}
async
getDebugWeb3
()
{
getDebugWeb3
()
{
return
new
Promise
((
resolve
,
reject
)
=>
{
return
new
Promise
((
resolve
,
reject
)
=>
{
executionContext
.
detectNetwork
((
error
,
network
)
=>
{
executionContext
.
detectNetwork
((
error
,
network
)
=>
{
let
web3
let
web3
if
(
error
||
!
network
)
{
if
(
error
||
!
network
)
{
web3
=
init
.
web3DebugNode
(
executionContext
.
web3
())
web3
=
init
.
web3DebugNode
(
executionContext
.
web3
())
}
else
{
}
else
{
var
webDebugNode
=
init
.
web3DebugNode
(
network
.
name
)
const
webDebugNode
=
init
.
web3DebugNode
(
network
.
name
)
web3
=
(
!
webDebugNode
?
executionContext
.
web3
()
:
webDebugNode
)
web3
=
!
webDebugNode
?
executionContext
.
web3
()
:
webDebugNode
}
}
init
.
extendWeb3
(
web3
)
init
.
extendWeb3
(
web3
)
resolve
(
web3
)
resolve
(
web3
)
...
@@ -120,7 +120,6 @@ class DebuggerUI {
...
@@ -120,7 +120,6 @@ class DebuggerUI {
}
}
async
startDebugging
(
blockNumber
,
txNumber
,
tx
)
{
async
startDebugging
(
blockNumber
,
txNumber
,
tx
)
{
const
self
=
this
if
(
this
.
debugger
)
this
.
unLoad
()
if
(
this
.
debugger
)
this
.
unLoad
()
let
compilers
=
this
.
registry
.
get
(
'compilersartefacts'
).
api
let
compilers
=
this
.
registry
.
get
(
'compilersartefacts'
).
api
...
@@ -136,25 +135,25 @@ class DebuggerUI {
...
@@ -136,25 +135,25 @@ class DebuggerUI {
this
.
listenToEvents
()
this
.
listenToEvents
()
this
.
debugger
.
debug
(
blockNumber
,
txNumber
,
tx
,
()
=>
{
this
.
debugger
.
debug
(
blockNumber
,
txNumber
,
tx
,
()
=>
{
self
.
stepManager
=
new
StepManagerUI
(
this
.
debugger
.
step_manager
)
this
.
stepManager
=
new
StepManagerUI
(
this
.
debugger
.
step_manager
)
self
.
vmDebugger
=
new
VmDebugger
(
this
.
debugger
.
vmDebuggerLogic
)
this
.
vmDebugger
=
new
VmDebugger
(
this
.
debugger
.
vmDebuggerLogic
)
self
.
txBrowser
.
setState
({
blockNumber
,
txNumber
,
debugging
:
true
})
this
.
txBrowser
.
setState
({
blockNumber
,
txNumber
,
debugging
:
true
})
self
.
renderDebugger
()
this
.
renderDebugger
()
}).
catch
((
error
)
=>
{
}).
catch
((
error
)
=>
{
toaster
(
error
)
toaster
(
error
)
this
.
unLoad
()
this
.
unLoad
()
})
})
}
}
async
getTrace
(
hash
)
{
getTrace
(
hash
)
{
return
new
Promise
(
async
(
resolve
,
reject
)
=>
{
return
new
Promise
(
async
(
resolve
,
reject
)
=>
{
le
t
compilers
=
this
.
registry
.
get
(
'compilersartefacts'
).
api
cons
t
compilers
=
this
.
registry
.
get
(
'compilersartefacts'
).
api
let
lastCompilationResult
let
lastCompilationResult
if
(
compilers
[
'__last'
])
lastCompilationResult
=
compilers
[
'__last'
]
if
(
compilers
[
'__last'
])
lastCompilationResult
=
compilers
[
'__last'
]
le
t
web3
=
await
this
.
getDebugWeb3
()
cons
t
web3
=
await
this
.
getDebugWeb3
()
le
t
debug
=
new
Debugger
({
cons
t
debug
=
new
Debugger
({
web3
,
web3
,
offsetToLineColumnConverter
:
this
.
registry
.
get
(
'offsettolinecolumnconverter'
).
api
,
offsetToLineColumnConverter
:
this
.
registry
.
get
(
'offsettolinecolumnconverter'
).
api
,
compiler
:
{
lastCompilationResult
}
compiler
:
{
lastCompilationResult
}
...
...
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