I have an archived library, let's call it "library A" that i need to debug. I published it (library A) to production, the change that was in there was failing. I had to revert to the previous library, let's call that "library Z". I need to use the library, library A, in the production environment, but without republishing it. I need the _satellite.environment.staging value to equal "production" during my debugging. This is the reason I can't use a development or staging version of library with the same change. I found an article that said I could download it, but there's no "Download" option in the dropdown (see screenshot attached). If I could get that, then I could use devtools to replace the published file, locally, and debug.
How can I download the archived library, library A?
Solved! Go to Solution.
Views
Replies
Total Likes
I found a way shortly after posting this. I made a new library with the same change that i needed from the archived library (Library A). I opened the unminified js file (by removing .min from the js file url) and changed the stage value from "development" to "production". I was able to use that successfully in chrome devtools' local override. It's a little hacky, but it works for debugging. Hopefully someone else finds this helpful.
Views
Replies
Total Likes
I found a way shortly after posting this. I made a new library with the same change that i needed from the archived library (Library A). I opened the unminified js file (by removing .min from the js file url) and changed the stage value from "development" to "production". I was able to use that successfully in chrome devtools' local override. It's a little hacky, but it works for debugging. Hopefully someone else finds this helpful.
Views
Replies
Total Likes
There are 3 other ways that you can load another Launch snippet into a website:
There are other browser extensions that allow you to override your website's code within your browser, but I normally rely on the 3 methods above.
Views
Replies
Total Likes
#3 is what I ended up doing.
The Debugger works for using different libraries, but it retains the environment which that library is in. For example, if you use a staging library in the debugger, on your production url, the environment will stay as staging. So any rules that fire based on a condition of "is environment production equal to true" will not fire. This is the scenario I was facing. #3 was the only way to work in this case.
Thank you for providing the other two options though.
Views
Replies
Total Likes
Views
Likes
Replies
Views
Like
Replies
Views
Likes
Replies