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
0d9e316d
Commit
0d9e316d
authored
Jan 10, 2018
by
yann300
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
send compilation data to remix
parent
6be82ac7
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
6 deletions
+11
-6
debugger.js
src/app/debugger/debugger.js
+10
-5
compile-tab.js
src/app/tabs/compile-tab.js
+1
-1
No files found.
src/app/debugger/debugger.js
View file @
0d9e316d
...
@@ -10,7 +10,16 @@ var executionContext = require('../../execution-context')
...
@@ -10,7 +10,16 @@ var executionContext = require('../../execution-context')
*/
*/
function
Debugger
(
id
,
appAPI
,
editorEvent
)
{
function
Debugger
(
id
,
appAPI
,
editorEvent
)
{
this
.
el
=
document
.
querySelector
(
id
)
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
.
sourceMappingDecoder
=
new
remixLib
.
SourceMappingDecoder
()
this
.
el
.
appendChild
(
this
.
debugger
.
render
())
this
.
el
.
appendChild
(
this
.
debugger
.
render
())
this
.
appAPI
=
appAPI
this
.
appAPI
=
appAPI
...
@@ -75,10 +84,6 @@ Debugger.prototype.debug = function (txHash) {
...
@@ -75,10 +84,6 @@ Debugger.prototype.debug = function (txHash) {
var
self
=
this
var
self
=
this
this
.
debugger
.
web3
().
eth
.
getTransaction
(
txHash
,
function
(
error
,
tx
)
{
this
.
debugger
.
web3
().
eth
.
getTransaction
(
txHash
,
function
(
error
,
tx
)
{
if
(
!
error
)
{
if
(
!
error
)
{
var
compilationResult
=
self
.
appAPI
.
lastCompilationResult
()
if
(
compilationResult
)
{
self
.
debugger
.
setCompilationResult
(
compilationResult
.
data
)
}
self
.
debugger
.
debug
(
tx
)
self
.
debugger
.
debug
(
tx
)
}
}
})
})
...
...
src/app/tabs/compile-tab.js
View file @
0d9e316d
...
@@ -62,7 +62,7 @@ function compileTab (container, appAPI, appEvents, opts) {
...
@@ -62,7 +62,7 @@ function compileTab (container, appAPI, appEvents, opts) {
// ----------------- autoCompile -----------------
// ----------------- autoCompile -----------------
var
autoCompileInput
=
compileContainer
.
querySelector
(
'#autoCompile'
)
var
autoCompileInput
=
compileContainer
.
querySelector
(
'#autoCompile'
)
var
autoCompile
=
fals
e
var
autoCompile
=
tru
e
if
(
appAPI
.
config
.
exists
(
'autoCompile'
))
{
if
(
appAPI
.
config
.
exists
(
'autoCompile'
))
{
autoCompile
=
appAPI
.
config
.
get
(
'autoCompile'
)
autoCompile
=
appAPI
.
config
.
get
(
'autoCompile'
)
}
}
...
...
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