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
cbfcccf0
Commit
cbfcccf0
authored
Oct 19, 2018
by
Iuri Matias
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix breakpoint event; add method to trigger souce update
parent
c5fb4817
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
3 deletions
+12
-3
index.js
remix-debug/src/cmdline/index.js
+12
-3
No files found.
remix-debug/src/cmdline/index.js
View file @
cbfcccf0
...
@@ -8,6 +8,7 @@ class CmdLine {
...
@@ -8,6 +8,7 @@ class CmdLine {
constructor
()
{
constructor
()
{
this
.
events
=
new
EventManager
()
this
.
events
=
new
EventManager
()
this
.
lineColumnPos
=
null
this
.
lineColumnPos
=
null
this
.
rawLocation
=
null
}
}
connect
(
providerType
,
url
)
{
connect
(
providerType
,
url
)
{
...
@@ -87,6 +88,7 @@ class CmdLine {
...
@@ -87,6 +88,7 @@ class CmdLine {
self
.
debugger
.
event
.
register
(
'newSourceLocation'
,
function
(
lineColumnPos
,
rawLocation
)
{
self
.
debugger
.
event
.
register
(
'newSourceLocation'
,
function
(
lineColumnPos
,
rawLocation
)
{
self
.
lineColumnPos
=
lineColumnPos
self
.
lineColumnPos
=
lineColumnPos
self
.
rawLocation
=
rawLocation
self
.
events
.
emit
(
"source"
,
[
lineColumnPos
,
rawLocation
])
self
.
events
.
emit
(
"source"
,
[
lineColumnPos
,
rawLocation
])
});
});
...
@@ -102,16 +104,23 @@ class CmdLine {
...
@@ -102,16 +104,23 @@ class CmdLine {
self
.
events
.
emit
(
"locals"
,
data
)
self
.
events
.
emit
(
"locals"
,
data
)
});
});
cb
()
if
(
cb
)
{
// TODO: this should be an onReady event
setTimeout
(
cb
,
1000
);
}
})
})
}
}
triggerSourceUpdate
()
{
this
.
events
.
emit
(
"source"
,
[
this
.
lineColumnPos
,
this
.
rawLocation
])
}
stepJumpNextBreakpoint
()
{
stepJumpNextBreakpoint
()
{
this
.
debugger
.
step_manager
.
stepJ
umpNextBreakpoint
()
this
.
debugger
.
step_manager
.
j
umpNextBreakpoint
()
}
}
stepJumpPreviousBreakpoint
()
{
stepJumpPreviousBreakpoint
()
{
this
.
debugger
.
step_manager
.
stepJ
umpPreviousBreakpoint
()
this
.
debugger
.
step_manager
.
j
umpPreviousBreakpoint
()
}
}
stepOverForward
(
solidityMode
)
{
stepOverForward
(
solidityMode
)
{
...
...
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