Eval'ing a script with sourceURL set to the name of a loaded script will cause breakpoints to be set incorrectly for that script #56
Comments
I made a deep debugging on the system.js. on the instantiate step of an AMD module, it needs to eval the code. The call stack is: What will happens if the eval happens for the chrome debugger? Maybe related to #36 As a workaround, we can provide the absolute URL to SystemJS eval function. |
@roblourens I saw you are using setBreakpoint method for eval case. Why not always use setBreakpoint method for all the cases? The |
Using |
I see. In such case, could we change the logic about |
If I remember correctly, in your case, the script that's eval'd is not the script that's on disk, right? It's a wrapper or something. Most eval scripts can't be associated with a client path. It shouldn't be necessary as long as the sourcemaps can be resolved. Why do you want those maps? |
There are two situations here:
So, I am thinking about, can we do something to resolve the second case? |
|
The second case triggers the |
I handle scripts with no URL but also need to handle scripts with the same URL. System.js was doing this for some reason.
The text was updated successfully, but these errors were encountered: