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
9639aa4b
Commit
9639aa4b
authored
Oct 27, 2016
by
yann300
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
event property
parent
d1acbc34
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
debugger.js
src/app/debugger.js
+3
-3
No files found.
src/app/debugger.js
View file @
9639aa4b
...
@@ -24,12 +24,12 @@ function Debugger (id, editor, compiler, executionContextEvent, switchToFile) {
...
@@ -24,12 +24,12 @@ function Debugger (id, editor, compiler, executionContextEvent, switchToFile) {
})
})
this
.
lastCompilationResult
=
null
this
.
lastCompilationResult
=
null
this
.
debugger
.
register
(
'newTraceLoaded'
,
this
,
function
()
{
this
.
debugger
.
event
.
register
(
'newTraceLoaded'
,
this
,
function
()
{
self
.
cache
.
clear
()
self
.
cache
.
clear
()
self
.
lastCompilationResult
=
self
.
compiler
.
lastCompilationResult
self
.
lastCompilationResult
=
self
.
compiler
.
lastCompilationResult
})
})
this
.
debugger
.
register
(
'traceUnloaded'
,
this
,
function
()
{
this
.
debugger
.
event
.
register
(
'traceUnloaded'
,
this
,
function
()
{
self
.
removeCurrentMarker
()
self
.
removeCurrentMarker
()
self
.
cache
.
clear
()
self
.
cache
.
clear
()
})
})
...
@@ -41,7 +41,7 @@ function Debugger (id, editor, compiler, executionContextEvent, switchToFile) {
...
@@ -41,7 +41,7 @@ function Debugger (id, editor, compiler, executionContextEvent, switchToFile) {
})
})
// register selected code item, highlight the corresponding source location
// register selected code item, highlight the corresponding source location
this
.
debugger
.
codeManager
.
register
(
'changed'
,
this
,
function
(
code
,
address
,
index
)
{
this
.
debugger
.
codeManager
.
event
.
register
(
'changed'
,
this
,
function
(
code
,
address
,
index
)
{
if
(
self
.
lastCompilationResult
)
{
if
(
self
.
lastCompilationResult
)
{
this
.
debugger
.
sourceLocationTracker
.
getSourceLocation
(
address
,
index
,
self
.
lastCompilationResult
.
data
.
contracts
,
function
(
error
,
rawLocation
)
{
this
.
debugger
.
sourceLocationTracker
.
getSourceLocation
(
address
,
index
,
self
.
lastCompilationResult
.
data
.
contracts
,
function
(
error
,
rawLocation
)
{
if
(
!
error
)
{
if
(
!
error
)
{
...
...
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