Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
F
Front-End
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
abdullh.alsoleman
Front-End
Commits
67362ce5
Unverified
Commit
67362ce5
authored
Feb 18, 2020
by
Jonah Williams
Committed by
GitHub
Feb 18, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[flutter_tools] fix debug stack traces (#50872)
parent
57acc687
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
10 deletions
+20
-10
stack_trace.dart
dev/integration_tests/web/lib/stack_trace.dart
+9
-9
bootstrap.dart
packages/flutter_tools/lib/src/web/bootstrap.dart
+11
-1
No files found.
dev/integration_tests/web/lib/stack_trace.dart
View file @
67362ce5
...
...
@@ -33,9 +33,9 @@ const List<StackFrame> expectedDebugStackFrames = <StackFrame>[
number:
-
1
,
packageScheme:
'package'
,
package:
'web_integration'
,
packagePath:
'stack_trace.dart
.lib.js
'
,
line:
1
38
,
column:
15
,
packagePath:
'stack_trace.dart'
,
line:
1
21
,
column:
3
,
className:
'<unknown>'
,
method:
'baz'
,
source
:
''
,
...
...
@@ -44,9 +44,9 @@ const List<StackFrame> expectedDebugStackFrames = <StackFrame>[
number:
-
1
,
packageScheme:
'package'
,
package:
'web_integration'
,
packagePath:
'stack_trace.dart
.lib.js
'
,
line:
1
35
,
column:
17
,
packagePath:
'stack_trace.dart'
,
line:
1
16
,
column:
3
,
className:
'<unknown>'
,
method:
'bar'
,
source
:
''
,
...
...
@@ -55,9 +55,9 @@ const List<StackFrame> expectedDebugStackFrames = <StackFrame>[
number:
-
1
,
packageScheme:
'package'
,
package:
'web_integration'
,
packagePath:
'stack_trace.dart
.lib.js
'
,
line:
1
32
,
column:
17
,
packagePath:
'stack_trace.dart'
,
line:
1
11
,
column:
3
,
className:
'<unknown>'
,
method:
'foo'
,
source
:
''
,
...
...
packages/flutter_tools/lib/src/web/bootstrap.dart
View file @
67362ce5
...
...
@@ -194,7 +194,17 @@ define("main_module.bootstrap", ["$entrypoint", "dart_sdk"], function(app, dart_
function(url) {
url = url.replace(baseUrl, '
/
');
var module = window.
\
$dartLoader
.urlToModuleId.get(url);
if (!module) return null;
if (!module) {
if (url.endsWith('
dart_sdk
.
js
')) {
module = '
dart_sdk
';
} else {
try {
module = '
/
packages
' + url.split('
packages
')[1].split('
.
')[0] + '
.
dart
';
} catch (e) {
return null;
}
}
}
return dart.getSourceMap(module);
});
}
...
...
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