You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
While debugging extensions in Chrome Devtools, the sourcemaps in content scripts are off by one line. I have this experience working on 2 different extensions. In the screenshot, the breakpoint on line 55 actually activates for line 54, and the debug cursor is currently acting on line 55. Is there a fix for this issue?
I made a simple test case using example "with-content-scripts-ui"
Green arrows shows the same comment in code.
But the mapping from generated file to original source is wrong.
Line 7 in code is mapped to something else. As indicated with the red arrow.
I've also run into this issue, verified it with the visualization tool, and it's making debugging impossible. I searched for this issue on the web generally, and it seems like something that other people have encountered years ago, but it's unclear whether a fix was found as the issues usually go stale. I presume that plasmo gets this functionality from somewhere else (maybe webpack, but I'm not sure if webpack then gets it from somewhere else), so I guess it needs fixing there and then plasmo would need to update its dependencies?
I really hope this can be fixed soon, because it's my only issue with Plamo. Everything else has been great.
What happened?
While debugging extensions in Chrome Devtools, the sourcemaps in content scripts are off by one line. I have this experience working on 2 different extensions. In the screenshot, the breakpoint on line 55 actually activates for line 54, and the debug cursor is currently acting on line 55. Is there a fix for this issue?
Version
Latest
What OS are you seeing the problem on?
Windows
What browsers are you seeing the problem on?
Chrome
Relevant log output
No response
(OPTIONAL) Contribution
Code of Conduct
The text was updated successfully, but these errors were encountered: