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
7d558863
Commit
7d558863
authored
Oct 27, 2020
by
ioedeveloper
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Updated generated sources
parent
d635f913
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
3 deletions
+20
-3
debugger-ui.tsx
libs/remix-ui/debugger-ui/src/lib/debugger-ui.tsx
+20
-3
No files found.
libs/remix-ui/debugger-ui/src/lib/debugger-ui.tsx
View file @
7d558863
...
...
@@ -75,14 +75,31 @@ export const DebuggerUI = ({ debuggerModule }) => {
})
})
debuggerInstance
.
event
.
register
(
'newSourceLocation'
,
async
(
lineColumnPos
,
rawLocation
)
=>
{
debuggerInstance
.
event
.
register
(
'newSourceLocation'
,
async
(
lineColumnPos
,
rawLocation
,
generatedSources
)
=>
{
const
contracts
=
await
fetchContractAndCompile
(
currentReceipt
.
contractAddress
||
currentReceipt
.
to
,
currentReceipt
)
if
(
contracts
)
{
const
path
=
contracts
.
getSourceName
(
rawLocation
.
file
)
let
path
=
contracts
.
getSourceName
(
rawLocation
.
file
)
if
(
!
path
)
{
// check in generated sources
for
(
const
source
of
generatedSources
)
{
if
(
source
.
id
===
rawLocation
.
file
)
{
path
=
`browser/.debugger/generated-sources/
${
source
.
name
}
`
let
content
try
{
content
=
await
debuggerModule
.
call
(
'fileManager'
,
'getFile'
,
path
,
source
.
contents
)
}
catch
(
e
)
{
console
.
log
(
'unable to fetch generated sources, the file probably doesn
\'
t exist yet'
,
e
)
}
if
(
content
!==
source
.
contents
)
{
await
debuggerModule
.
call
(
'fileManager'
,
'setFile'
,
path
,
source
.
contents
)
}
break
}
}
}
if
(
path
)
{
await
debuggerModule
.
call
(
'editor'
,
'discardHighlight'
)
await
debuggerModule
.
call
(
'editor'
,
'highlight'
,
lineColumnPos
,
path
)
...
...
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