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
27b3922e
Commit
27b3922e
authored
May 16, 2019
by
yann300
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix unloading the debugger
parent
610cc0f3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
+6
-3
debuggerUI.js
src/app/debugger/debuggerUI.js
+6
-3
No files found.
src/app/debugger/debuggerUI.js
View file @
27b3922e
var
TxBrowser
=
require
(
'./debuggerUI/TxBrowser'
)
var
StepManagerUI
=
require
(
'./debuggerUI/StepManager'
)
var
VmDebugger
=
require
(
'./debuggerUI/VmDebugger'
)
var
toaster
=
require
(
'../ui/tooltip'
)
var
Debugger
=
require
(
'remix-debug'
).
TransactionDebugger
...
...
@@ -104,14 +105,12 @@ class DebuggerUI {
startDebugging
(
blockNumber
,
txNumber
,
tx
)
{
const
self
=
this
if
(
this
.
debugger
)
delete
this
.
debugger
if
(
this
.
debugger
)
this
.
unLoad
()
let
compilers
=
this
.
registry
.
get
(
'compilersartefacts'
).
api
let
lastCompilationResult
if
(
compilers
[
'__last'
])
lastCompilationResult
=
compilers
[
'__last'
]
// TODO debugging with source highlight is disabled. see line 98
executionContext
.
detectNetwork
((
error
,
network
)
=>
{
let
web3
if
(
error
||
!
network
)
{
...
...
@@ -133,6 +132,9 @@ class DebuggerUI {
self
.
vmDebugger
=
new
VmDebugger
(
this
.
debugger
.
vmDebuggerLogic
)
self
.
txBrowser
.
setState
({
blockNumber
,
txNumber
,
debugging
:
true
})
self
.
renderDebugger
()
}).
catch
((
error
)
=>
{
toaster
(
error
)
this
.
unLoad
()
})
})
}
...
...
@@ -170,6 +172,7 @@ class DebuggerUI {
if
(
this
.
txBrowser
)
this
.
txBrowser
.
setState
({
debugging
:
false
})
this
.
vmDebugger
=
null
this
.
stepManager
=
null
if
(
this
.
debugger
)
delete
this
.
debugger
this
.
event
.
trigger
(
'traceUnloaded'
)
}
...
...
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