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
4f5f3f45
Unverified
Commit
4f5f3f45
authored
Feb 28, 2018
by
yann300
Committed by
GitHub
Feb 28, 2018
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #988 from ethereum/addfunctiontosendcompilationdatatoremix
Add function to send compilation data to Remix debugger
parents
6be82ac7
e3003866
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
5 deletions
+10
-5
debugger.js
src/app/debugger/debugger.js
+10
-5
No files found.
src/app/debugger/debugger.js
View file @
4f5f3f45
...
...
@@ -10,7 +10,16 @@ var executionContext = require('../../execution-context')
*/
function
Debugger
(
id
,
appAPI
,
editorEvent
)
{
this
.
el
=
document
.
querySelector
(
id
)
this
.
debugger
=
new
remixDebugger
.
ui
.
Debugger
()
this
.
debugger
=
new
remixDebugger
.
ui
.
Debugger
(
{
compilationResult
:
()
=>
{
var
compilationResult
=
self
.
appAPI
.
lastCompilationResult
()
if
(
compilationResult
)
{
return
compilationResult
.
data
}
return
null
}
})
this
.
sourceMappingDecoder
=
new
remixLib
.
SourceMappingDecoder
()
this
.
el
.
appendChild
(
this
.
debugger
.
render
())
this
.
appAPI
=
appAPI
...
...
@@ -75,10 +84,6 @@ Debugger.prototype.debug = function (txHash) {
var
self
=
this
this
.
debugger
.
web3
().
eth
.
getTransaction
(
txHash
,
function
(
error
,
tx
)
{
if
(
!
error
)
{
var
compilationResult
=
self
.
appAPI
.
lastCompilationResult
()
if
(
compilationResult
)
{
self
.
debugger
.
setCompilationResult
(
compilationResult
.
data
)
}
self
.
debugger
.
debug
(
tx
)
}
})
...
...
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