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
c4267d43
Commit
c4267d43
authored
Oct 17, 2018
by
Iuri Matias
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add more events
parent
9b557f0c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
index.js
remix-debug/src/cmdline/index.js
+4
-2
No files found.
remix-debug/src/cmdline/index.js
View file @
c4267d43
...
@@ -83,19 +83,21 @@ class CmdLine {
...
@@ -83,19 +83,21 @@ class CmdLine {
this
.
filename
=
filename
this
.
filename
=
filename
this
.
debugger
.
debug
(
null
,
txNumber
,
null
,
()
=>
{
this
.
debugger
.
debug
(
null
,
txNumber
,
null
,
()
=>
{
self
.
debugger
.
event
.
register
(
'newSourceLocation'
,
function
(
lineColumnPos
,
_
rawLocation
)
{
self
.
debugger
.
event
.
register
(
'newSourceLocation'
,
function
(
lineColumnPos
,
rawLocation
)
{
self
.
lineColumnPos
=
lineColumnPos
self
.
lineColumnPos
=
lineColumnPos
self
.
events
.
emit
(
"source"
)
self
.
events
.
emit
(
"source"
,
[
lineColumnPos
,
rawLocation
]
)
});
});
self
.
debugger
.
vmDebuggerLogic
.
event
.
register
(
'solidityState'
,
(
data
)
=>
{
self
.
debugger
.
vmDebuggerLogic
.
event
.
register
(
'solidityState'
,
(
data
)
=>
{
self
.
solidityState
=
data
self
.
solidityState
=
data
self
.
events
.
emit
(
"globals"
,
data
)
});
});
// TODO: this doesnt work too well, it should request the data instead...
// TODO: this doesnt work too well, it should request the data instead...
self
.
debugger
.
vmDebuggerLogic
.
event
.
register
(
'solidityLocals'
,
(
data
)
=>
{
self
.
debugger
.
vmDebuggerLogic
.
event
.
register
(
'solidityLocals'
,
(
data
)
=>
{
if
(
JSON
.
stringify
(
data
)
===
'{}'
)
return
if
(
JSON
.
stringify
(
data
)
===
'{}'
)
return
self
.
solidityLocals
=
data
self
.
solidityLocals
=
data
self
.
events
.
emit
(
"locals"
,
data
)
});
});
})
})
...
...
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