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
baafc780
Commit
baafc780
authored
Oct 09, 2018
by
Iuri Matias
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
move initializations of execution context
parent
0d2d4055
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
13 deletions
+2
-13
debugger.js
remix-debug/src/debugger/debugger.js
+2
-13
No files found.
remix-debug/src/debugger/debugger.js
View file @
baafc780
...
@@ -7,20 +7,17 @@ var traceHelper = remixLib.helpers.trace
...
@@ -7,20 +7,17 @@ var traceHelper = remixLib.helpers.trace
var
StepManager
=
require
(
'./stepManager'
)
var
StepManager
=
require
(
'./stepManager'
)
var
VmDebuggerLogic
=
require
(
'./VmDebugger'
)
var
VmDebuggerLogic
=
require
(
'./VmDebugger'
)
var
Web3Providers
=
remixLib
.
vm
.
Web3Providers
var
DummyProvider
=
remixLib
.
vm
.
DummyProvider
var
init
=
remixLib
.
init
var
init
=
remixLib
.
init
function
Debugger
(
options
)
{
function
Debugger
(
options
)
{
var
self
=
this
var
self
=
this
this
.
event
=
new
EventManager
()
this
.
event
=
new
EventManager
()
this
.
executionContext
=
options
.
executionContext
this
.
offsetToLineColumnConverter
=
options
.
offsetToLineColumnConverter
this
.
offsetToLineColumnConverter
=
options
.
offsetToLineColumnConverter
this
.
compiler
=
options
.
compiler
this
.
compiler
=
options
.
compiler
this
.
debugger
=
new
Ethdebugger
({
this
.
debugger
=
new
Ethdebugger
({
web3
:
this
.
executionContext
.
web3
,
web3
:
options
.
web3
,
compilationResult
:
()
=>
{
compilationResult
:
()
=>
{
var
compilationResult
=
this
.
compiler
.
lastCompilationResult
var
compilationResult
=
this
.
compiler
.
lastCompilationResult
if
(
compilationResult
)
{
if
(
compilationResult
)
{
...
@@ -30,10 +27,6 @@ function Debugger (options) {
...
@@ -30,10 +27,6 @@ function Debugger (options) {
}
}
})
})
this
.
web3Providers
=
new
Web3Providers
()
this
.
addProvider
(
'DUMMYWEB3'
,
new
DummyProvider
())
this
.
switchProvider
(
'DUMMYWEB3'
)
this
.
breakPointManager
=
new
remixLib
.
code
.
BreakpointManager
(
this
.
debugger
,
(
sourceLocation
)
=>
{
this
.
breakPointManager
=
new
remixLib
.
code
.
BreakpointManager
(
this
.
debugger
,
(
sourceLocation
)
=>
{
return
self
.
offsetToLineColumnConverter
.
offsetToLineColumn
(
sourceLocation
,
sourceLocation
.
file
,
this
.
compiler
.
lastCompilationResult
.
source
.
sources
,
this
.
compiler
.
lastCompilationResult
.
data
.
sources
)
return
self
.
offsetToLineColumnConverter
.
offsetToLineColumn
(
sourceLocation
,
sourceLocation
.
file
,
this
.
compiler
.
lastCompilationResult
.
source
.
sources
,
this
.
compiler
.
lastCompilationResult
.
data
.
sources
)
},
(
step
)
=>
{
},
(
step
)
=>
{
...
@@ -54,10 +47,6 @@ function Debugger (options) {
...
@@ -54,10 +47,6 @@ function Debugger (options) {
self
.
step_manager
.
jumpTo
(
step
)
self
.
step_manager
.
jumpTo
(
step
)
})
})
this
.
addProvider
(
'vm'
,
this
.
executionContext
.
vm
())
this
.
addProvider
(
'injected'
,
this
.
executionContext
.
internalWeb3
())
this
.
addProvider
(
'web3'
,
this
.
executionContext
.
internalWeb3
())
this
.
switchProvider
(
this
.
executionContext
.
getProvider
())
}
}
Debugger
.
prototype
.
addProvider
=
function
(
type
,
obj
)
{
Debugger
.
prototype
.
addProvider
=
function
(
type
,
obj
)
{
...
@@ -104,7 +93,7 @@ Debugger.prototype.registerAndHighlightCodeItem = function (index) {
...
@@ -104,7 +93,7 @@ Debugger.prototype.registerAndHighlightCodeItem = function (index) {
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
.
executionContext
.
web3
()
let
web3
=
this
.
debugger
.
web3
if
(
this
.
debugger
.
traceManager
.
isLoading
)
{
if
(
this
.
debugger
.
traceManager
.
isLoading
)
{
return
return
...
...
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