File tree Expand file tree Collapse file tree 1 file changed +15
-6
lines changed Expand file tree Collapse file tree 1 file changed +15
-6
lines changed Original file line number Diff line number Diff line change @@ -310,12 +310,21 @@ const NoMatchingSourceHelper: FunctionComponent<{ basename: string }> = ({ basen
310
310
How did you expect this file to be loaded? (If you have a compilation step, you should pick
311
311
'sourcemap')
312
312
< NoMatchingDecisionButtons onChange = { setHint } value = { hint } />
313
- { hint === NoMatchingSourceHint . Direct && (
314
- < p >
315
- It looks like your program didn't load the file this run. Make sure it's loaded by your
316
- program.
317
- </ p >
318
- ) }
313
+ { hint === NoMatchingSourceHint . Direct &&
314
+ ( isBrowserType ( dump ) ? (
315
+ < p >
316
+ It looks like your webpage didn't load this script; breakpoints won't be bound until
317
+ the file they're set in is loaded. Make sure your script is imported from the right
318
+ location using a < code > { '<script>' } </ code > tag.
319
+ </ p >
320
+ ) : (
321
+ < p >
322
+ It looks like your program didn't load this script; breakpoints won't be bound until
323
+ the file they're set in is loaded. Make sure your script is imported with a{ ' ' }
324
+ < code > require()</ code > or < code > import</ code > statement, such as{ ' ' }
325
+ < code > require('./{ basename } ')</ code > .
326
+ </ p >
327
+ ) ) }
319
328
{ hint === NoMatchingSourceHint . SourceMap && (
320
329
< p >
321
330
Here's some hints that might help you:
You can’t perform that action at this time.
0 commit comments