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
5dc417a8
Commit
5dc417a8
authored
Oct 09, 2018
by
Iuri Matias
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
move providers methods out of debugger
parent
baafc780
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
27 deletions
+4
-27
debugger.js
remix-debug/src/debugger/debugger.js
+4
-27
No files found.
remix-debug/src/debugger/debugger.js
View file @
5dc417a8
...
@@ -7,8 +7,6 @@ var traceHelper = remixLib.helpers.trace
...
@@ -7,8 +7,6 @@ var traceHelper = remixLib.helpers.trace
var
StepManager
=
require
(
'./stepManager'
)
var
StepManager
=
require
(
'./stepManager'
)
var
VmDebuggerLogic
=
require
(
'./VmDebugger'
)
var
VmDebuggerLogic
=
require
(
'./VmDebugger'
)
var
init
=
remixLib
.
init
function
Debugger
(
options
)
{
function
Debugger
(
options
)
{
var
self
=
this
var
self
=
this
this
.
event
=
new
EventManager
()
this
.
event
=
new
EventManager
()
...
@@ -49,31 +47,6 @@ function Debugger (options) {
...
@@ -49,31 +47,6 @@ function Debugger (options) {
}
}
Debugger
.
prototype
.
addProvider
=
function
(
type
,
obj
)
{
this
.
web3Providers
.
addProvider
(
type
,
obj
)
this
.
event
.
trigger
(
'providerAdded'
,
[
type
])
}
Debugger
.
prototype
.
switchProvider
=
function
(
type
)
{
var
self
=
this
this
.
web3Providers
.
get
(
type
,
function
(
error
,
obj
)
{
if
(
error
)
{
console
.
log
(
'provider '
+
type
+
' not defined'
)
}
else
{
self
.
debugger
.
updateWeb3
(
obj
)
self
.
executionContext
.
detectNetwork
((
error
,
network
)
=>
{
if
(
error
||
!
network
)
{
self
.
debugger
.
updateWeb3
(
obj
)
}
else
{
var
webDebugNode
=
init
.
web3DebugNode
(
network
.
name
)
self
.
debugger
.
updateWeb3
(
!
webDebugNode
?
obj
:
webDebugNode
)
}
})
self
.
event
.
trigger
(
'providerChanged'
,
[
type
])
}
})
}
Debugger
.
prototype
.
registerAndHighlightCodeItem
=
function
(
index
)
{
Debugger
.
prototype
.
registerAndHighlightCodeItem
=
function
(
index
)
{
const
self
=
this
const
self
=
this
// register selected code item, highlight the corresponding source location
// register selected code item, highlight the corresponding source location
...
@@ -91,6 +64,10 @@ Debugger.prototype.registerAndHighlightCodeItem = function (index) {
...
@@ -91,6 +64,10 @@ Debugger.prototype.registerAndHighlightCodeItem = function (index) {
})
})
}
}
Debugger
.
prototype
.
updateWeb3
=
function
(
web3
)
{
this
.
debugger
.
web3
=
web3
}
Debugger
.
prototype
.
debug
=
function
(
blockNumber
,
txNumber
,
tx
,
loadingCb
)
{
Debugger
.
prototype
.
debug
=
function
(
blockNumber
,
txNumber
,
tx
,
loadingCb
)
{
const
self
=
this
const
self
=
this
let
web3
=
this
.
debugger
.
web3
let
web3
=
this
.
debugger
.
web3
...
...
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